]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_dir2_block.c
xfs: remove XFS_WANT_CORRUPTED_RETURN from dir3 data verifiers
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Feb 2018 04:43:16 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:16 +0000 (22:43 -0600)
commita7e32f0ddf56a6a3ac88074ce9e5d46451f1124c
tree6002bce81feba95e5521bf164ee490849483d3d7
parentbb2a125a59d637454de455956fd5ac57f61baea4
xfs: remove XFS_WANT_CORRUPTED_RETURN from dir3 data verifiers

Source kernel commit: 9101d3707b9acae8bbb0d82d47e99cf5c60b3ee5

Since __xfs_dir3_data_check verifies on-disk metadata, we can't have it
noisily blowing asserts and hanging the system on corrupt data coming in
off the disk.  Instead, have it return a boolean like all the other
checker functions, and only have it noisily fail if we fail in debug
mode.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_priv.h