summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/scrub.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-10-18 07:37:36 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2017-10-27 01:38:23 +0300
commitdcb660f9222fd9f607e7e05f4755b39b809ca19f (patch)
tree7f18fd46d04dae3fb1aa27192e2e7e1d4ab0110c /fs/xfs/scrub/scrub.h
parenta56371865e7870d953d3837aaa1d12230bba021d (diff)
downloadlinux-dcb660f9222fd9f607e7e05f4755b39b809ca19f.tar.xz
xfs: probe the scrub ioctl
Create a probe scrubber with id 0. This will be used by xfs_scrub to probe the kernel's abilities to scrub (and repair) the metadata. We do this by validating the ioctl inputs from userspace, preparing the filesystem for a scrub (or a repair) operation, and immediately returning to userspace. Userspace can use the returned errno and structure state to decide (in broad terms) if scrub/repair are supported by the running kernel. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.h')
-rw-r--r--fs/xfs/scrub/scrub.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h
index ef7b50e33c93..b7b94220d929 100644
--- a/fs/xfs/scrub/scrub.h
+++ b/fs/xfs/scrub/scrub.h
@@ -45,5 +45,6 @@ struct xfs_scrub_context {
};
/* Metadata scrubbers */
+int xfs_scrub_tester(struct xfs_scrub_context *sc);
#endif /* __XFS_SCRUB_SCRUB_H__ */