diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-06-16 01:38:43 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-06-16 01:38:43 -0400 |
commit | fe75afbf33389f71f8588af388d0c01db0cbf753 (patch) | |
tree | b2fd6e1a157b717842c3fbd533b529ba9b92e954 /e2fsck/super.c | |
parent | a3efe4842054175d01b465fbe0b29b9be8b800a1 (diff) | |
download | e2fsprogs-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 'e2fsck/super.c')
-rw-r--r-- | e2fsck/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/super.c b/e2fsck/super.c index 3f9e3331..40cfc4fb 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -690,7 +690,7 @@ void check_super_block(e2fsck_t ctx) return; } - ctx->free_blocks = free_blocks; + ctx->free_blocks = EXT2FS_C2B(fs, free_blocks); ctx->free_inodes = free_inodes; if ((ext2fs_free_blocks_count(sb) > ext2fs_blocks_count(sb)) || |