xfs: create an ioctl to scrub AG metadata
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Oct 2017 04:37:34 +0000 (21:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:23 +0000 (15:38 -0700)
commit36fd6e863cb7329ab2e5687fdae4e4626b840adc
tree951985ea1ff0da802cf28e472fe09412620dc0d5
parent91fb9afc0847926ef6ea7695b8125c8fbe7974d6
xfs: create an ioctl to scrub AG metadata

Create an ioctl that can be used to scrub internal filesystem metadata.
The new ioctl takes the metadata type, an (optional) AG number, an
(optional) inode number and generation, and a flags argument.  This will
be used by the upcoming XFS online scrub tool.

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_fs.h
fs/xfs/scrub/scrub.c [new file with mode: 0644]
fs/xfs/scrub/scrub.h [new file with mode: 0644]
fs/xfs/scrub/trace.c [new file with mode: 0644]
fs/xfs/scrub/trace.h [new file with mode: 0644]
fs/xfs/scrub/xfs_scrub.h [new file with mode: 0644]
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl32.c