]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: use libxfs extsize/cowextsize validation helpers
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 Aug 2018 22:06:44 +0000 (17:06 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 1 Aug 2018 22:06:44 +0000 (17:06 -0500)
commitdb3d080b40ecce86ec6755a04544bbc59aa344da
tree1a76c5ee64c0a3fc24645e13e730e3690ed27b76
parentbec810e8b483de05057411baf42acca620c7173f
xfs_repair: use libxfs extsize/cowextsize validation helpers

Now that we've ported the extent size hint verifiers to libxfs, call
them from xfs_repair instead of open-coding the checks.  Tweak the
repair message slightly to reflect the fact that we zero the field and
clear the inode flag if the hint is garbage or is inconsistent with the
inode flags.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
repair/dinode.c