]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: provide a centralized method for verifying inline fork data
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Feb 2018 04:43:17 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:17 +0000 (22:43 -0600)
commit20e882d4fe6a7fdd0efbb61b3f10fb5b8ee8316a
treee985a33de3b5703f7c1ebfd14f9f2d50e883242f
parent1f98251ffd56f2d78fff582568e984dec952d89c
xfs: provide a centralized method for verifying inline fork data

Source kernel commit: 9cfb9b47479e237d217dbcfafe034cbf98f45909

Replace the current haphazard dir2 shortform verifier callsites with a
centralized verifier function that can be called either with the default
verifier functions or with a custom set.  This helps us strengthen
integrity checking while providing us with flexibility for repair tools.

xfs_repair wants this to be able to supply its own verifier functions
when trying to fix possibly corrupt metadata.

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>
include/xfs_inode.h
libxfs/rdwr.c
libxfs/util.c
libxfs/xfs_inode_fork.c
libxfs/xfs_inode_fork.h