Re: [PATCH] e2fsck: remove resize inode if both resize_inode and meta_bg are enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

*** 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!

				- Ted



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux