xfs: implement the metadata repair ioctl flag
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 14 May 2018 13:34:36 +0000 (06:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 May 2018 01:12:50 +0000 (18:12 -0700)
commit84d42ea6b6269aee7eb3d91a4425a08b8965fd4a
tree77f93fedc0ae20036d12a59dad18cb92849d014d
parent718fa74b153f26623e5cacfb24522f72b7ae9d80
xfs: implement the metadata repair ioctl flag

Plumb in the pieces necessary to make the "scrub" subfunction of
the scrub ioctl actually work.  This means that we make the IFLAG_REPAIR
flag to the scrub ioctl actually do something, and we add an errortag
knob so that xfstests can force the kernel to rebuild a metadata
structure even if there's nothing wrong with it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/Kconfig
fs/xfs/Makefile
fs/xfs/libxfs/xfs_errortag.h
fs/xfs/libxfs/xfs_fs.h
fs/xfs/scrub/repair.c [new file with mode: 0644]
fs/xfs/scrub/repair.h [new file with mode: 0644]
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/xfs_error.c