On Sat, Aug 11, 2018 at 07:04:30PM -0400, Theodore Y. Ts'o wrote: > On Wed, Aug 08, 2018 at 01:52:56PM +0200, Lukas Czerner wrote: > > 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@xxxxxxxxxx> > > I can tell that you didn't run "make check" before sending the commit > out; because if you did, you would have noticed this: Guitly as charged :) > > *** Unordered problem table: > curr code = 0x00000031: @S last mount time (%t, > now = %T) is in the future. > > *** prev code = 0x00000051: Resize_@i and meta_bg features are enabled. Those features are > not compatible. Resize @i should be disabled. > *** This is a programming error in e2fsck > make: *** [Makefile:469: check] Error 1o > > I fixed this up, and ran a quick test case, so I'll apply it, but it > would be great if you could create a regression test case. Thanks! Yeah, I was considering it, then I decided it was probably not worth it. But sure, I can create one. -Lukas > > Thanks! > > - Ted