Whamcloud - gitweb
Fix inode table allocation with flexbg
authorFrederic Bohe <frederic.bohe@bull.net>
Thu, 17 Jul 2008 11:34:41 +0000 (13:34 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Jul 2008 15:11:48 +0000 (11:11 -0400)
commitb5264593993145fa17a1758f064443075ebea072
tree340e64b141227ca10e300f37202d7e89f3cbfef0
parent9c9a92124e27f9c5b10c2b32572ac14cafb54b3c
Fix inode table allocation with flexbg

Disordered inode tables may appear when inode_blocks_per_group is lesser
or equal to the number of groups in a flex group.

This bug can be reproduced with:
mkfs.ext4 -t ext4dev -G512 70G

In that case, you can see with dump2fs that inode tables for groups 510
and 511 are placed just after group 51's inode table instead of being
placed after group 509's inode table.

Signed-off-by: Frederic Bohe <frederic.bohe@bull.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/alloc_tables.c