summaryrefslogtreecommitdiff
path: root/misc/mke2fs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-06-16 01:38:43 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-06-16 01:38:43 -0400
commitfe75afbf33389f71f8588af388d0c01db0cbf753 (patch)
treeb2fd6e1a157b717842c3fbd533b529ba9b92e954 /misc/mke2fs.c
parenta3efe4842054175d01b465fbe0b29b9be8b800a1 (diff)
downloade2fsprogs-fe75afbf33389f71f8588af388d0c01db0cbf753.tar.gz
Fix superblock field s_blocks_count for bigalloc file systems
Treat the s_blocks_count field in the superblock as a free block count (instead of the number of free clusters) for bigalloc file systems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r--misc/mke2fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 7e0cc34e..788e0fc2 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -2134,7 +2134,7 @@ static void fix_cluster_bg_counts(ext2_filsys fs)
group++;
}
}
- ext2fs_free_blocks_count_set(fs->super, tot_free);
+ ext2fs_free_blocks_count_set(fs->super, EXT2FS_C2B(fs, tot_free));
}
int main (int argc, char *argv[])