]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb02a2f02601eff086b48669796f9ee8a4db2bfa6
tree77f93fedc0ae20036d12a59dad18cb92849d014d
parentd98a4023280d06b30b8c21f99d0f00a4748a44f5
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