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>
Showing
- fs/xfs/Makefile 1 addition, 0 deletionsfs/xfs/Makefile
- fs/xfs/libxfs/xfs_fs.h 2 additions, 1 deletionfs/xfs/libxfs/xfs_fs.h
- fs/xfs/scrub/common.c 59 additions, 0 deletionsfs/xfs/scrub/common.c
- fs/xfs/scrub/common.h 57 additions, 0 deletionsfs/xfs/scrub/common.h
- fs/xfs/scrub/scrub.c 29 additions, 0 deletionsfs/xfs/scrub/scrub.c
- fs/xfs/scrub/scrub.h 1 addition, 0 deletionsfs/xfs/scrub/scrub.h
- fs/xfs/scrub/trace.c 1 addition, 0 deletionsfs/xfs/scrub/trace.c
Loading