diff options
author | Eric Sandeen <sandeen@redhat.com> | 2011-10-03 23:11:25 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-03 23:11:28 -0400 |
commit | bfbeec0c89d44d456003770d25c70735e45c5622 (patch) | |
tree | 4b22b19ffb735ed45dddf37a3100c8944abb65c1 /lib/ext2fs | |
parent | 8232f2ddaece256afd323eb5a289a5ec1b7fbd1a (diff) | |
download | e2fsprogs-bfbeec0c89d44d456003770d25c70735e45c5622.tar.gz |
e2fsprogs: Fix thinko in ext2fs_initialize bigalloc case
Surely we should be setting s_clusters_per_group, not
s_blocks_per_group, to EXT2_MAX_CLUSTERS_PER_GROUP here.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs')
-rw-r--r-- | lib/ext2fs/initialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/initialize.c b/lib/ext2fs/initialize.c index 47f0b1ca..2875f97e 100644 --- a/lib/ext2fs/initialize.c +++ b/lib/ext2fs/initialize.c @@ -218,7 +218,7 @@ errcode_t ext2fs_initialize(const char *name, int flags, else super->s_clusters_per_group = fs->blocksize * 8; if (super->s_clusters_per_group > EXT2_MAX_CLUSTERS_PER_GROUP(super)) - super->s_blocks_per_group = EXT2_MAX_CLUSTERS_PER_GROUP(super); + super->s_clusters_per_group = EXT2_MAX_CLUSTERS_PER_GROUP(super); super->s_blocks_per_group = EXT2FS_C2B(fs, super->s_clusters_per_group); } else { |