Whamcloud - gitweb
resize2fs: fix -M size calculations to avoid cutting off the inode table
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 Oct 2013 02:35:14 +0000 (22:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 Oct 2013 02:35:14 +0000 (22:35 -0400)
commit2215293c7e85c88d2fbc06f9e9438fca9a25213c
tree5345cdb444cbbbb47464c0a684d2c0a84b0b3e66
parente231f17500477f7abbea5c441971be491a04fdf4
resize2fs: fix -M size calculations to avoid cutting off the inode table

If the file system's inode table blocks in the last block group are
located in the middle or the end of the block group, it's possible for
resize2fs -M to use a size which will require relocating the inode
table blocks in the last block group.  This can lead to all sorts of
problems, so solve it by simply guaranteeing that we will never do
that.

Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/resize2fs.c