]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - resize/resize2fs.c
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>
Sun, 10 Aug 2014 20:21:08 +0000 (16:21 -0400)
commitc82815e5097f130c8b926b3303a1e063a19dcdd0
treebc5464d51f74b6321066948ecc5982c318638a01
parent7a4352dccd18928ffddd188cc927f4983ba80f72
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

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