]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: remove resize inode if both resize_inode and meta_bg are enabled
authorLukas Czerner <lczerner@redhat.com>
Wed, 8 Aug 2018 11:52:56 +0000 (13:52 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Aug 2018 23:04:38 +0000 (19:04 -0400)
commit74848259f0dd42bd478f0541c94f31ccd68eac3c
tree43cf4db6671b22750358de71bd37d32152369669
parent5abc0414922a3c99a80fdc53b1acb0f44f6e2aac
e2fsck: remove resize inode if both resize_inode and meta_bg are enabled

Previous e2fsprogs versions allowed to create a file system with both
resize_inode and meta_bg enabled. This was fixed by upstream commit
42e77d5d ("libext2fs: don't create filesystems with meta_bg and resize_inode")

However e2fsck still does not recognize the conflict and will attempt to
clear and recreate resize_inode if it's corrupted due to this incompatible
feature combination, though it will create it in the same wrong layout.

Fix it by teaching e2fsck to recognize resize_inode and meta_bg
conflict and fixing it by disabling and clearing resize inode.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/problem.c
e2fsck/problem.h
e2fsck/super.c