]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
resize2fs: disable the meta_bg feature if necessary
authorTheodore Ts'o <tytso@mit.edu>
Sat, 9 Aug 2014 16:33:11 +0000 (12:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 9 Aug 2014 17:07:58 +0000 (13:07 -0400)
commit29621470e00e3ea7db22c69f9269291155f88590
treebc5464d51f74b6321066948ecc5982c318638a01
parentc2d8e592bb97b81e89ed9cabace42bb606ee2256
resize2fs: disable the meta_bg feature if necessary

When shrinking a file system, if the number block groups drops below
the point where we started using the meta_bg layout, disable the
meta_bg feature and set s_first_meta_bg to zero.  This is necessary to
avoid creating an invalid/corrupted file system after the shrink.

Addresses-Debian-Bug: 756922

Reported-by: Marcin Wolcendorf <antymat+debian@chelmska.waw.pl>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/resize2fs.c