diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-18 06:37:36 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-27 00:38:23 +0200 |
commit | dcb660f9222fd9f607e7e05f4755b39b809ca19f (patch) | |
tree | 7f18fd46d04dae3fb1aa27192e2e7e1d4ab0110c /fs/xfs/scrub/trace.c | |
parent | xfs: dispatch metadata scrub subcommands (diff) | |
download | linux-dcb660f9222fd9f607e7e05f4755b39b809ca19f.tar.xz linux-dcb660f9222fd9f607e7e05f4755b39b809ca19f.zip |
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/trace.c')
-rw-r--r-- | fs/xfs/scrub/trace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/scrub/trace.c b/fs/xfs/scrub/trace.c index c59fd41b969d..88b5ccb5df07 100644 --- a/fs/xfs/scrub/trace.c +++ b/fs/xfs/scrub/trace.c @@ -32,6 +32,7 @@ #include "xfs_trans.h" #include "scrub/xfs_scrub.h" #include "scrub/scrub.h" +#include "scrub/common.h" /* * We include this last to have the helpers above available for the trace |