]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: don't treat unknown di_flags2 as corruption in scrub
authorEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:42 +0000 (11:49 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 9 Oct 2018 16:49:42 +0000 (11:49 -0500)
commitf69ea1f4fe4f28ff6a24f6fb2d2c2c4c6db0e6ad
treefefb6131c34740e9651267658546b4f1c94657ba
parent50fba283946abcb053592e26898ac173bd3702f7
xfs: don't treat unknown di_flags2 as corruption in scrub

Source kernel commit: f369a13cead821e679c7415dc66a17ec48cc26bf

xchk_inode_flags2() currently treats any di_flags2 values that the
running kernel doesn't recognize as corruption, and calls
xchk_ino_set_corrupt() if they are set.  However, it's entirely possible
that these flags were set in some newer kernel and are quite valid,
but ignored in this kernel.

(Validators don't care one bit about unknown di_flags2.)

Call xchk_ino_set_warning instead, because this may or may not actually
indicate a problem.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_format.h