]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_scrub: classify lack of ioctl support as a runtime error
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 Feb 2018 21:47:50 +0000 (15:47 -0600)
committerEric Sandeen <sandeen@redhat.com>
Mon, 12 Feb 2018 21:47:50 +0000 (15:47 -0600)
If the kernel doesn't have the SCRUB_METADATA ioctl that's a runtime
error, not a fs error.  Account it as such.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/phase1.c

index af93d0f3cb1e9f3d48bfde6c1b018097b98ed798..82c80223b364cf51a332d9016c1f32a93a226bd3 100644 (file)
@@ -174,14 +174,14 @@ _("Does not appear to be an XFS filesystem!"));
            !xfs_can_scrub_bmap(ctx) || !xfs_can_scrub_dir(ctx) ||
            !xfs_can_scrub_attr(ctx) || !xfs_can_scrub_symlink(ctx) ||
            !xfs_can_scrub_parent(ctx)) {
-               str_error(ctx, ctx->mntpoint,
+               str_info(ctx, ctx->mntpoint,
 _("Kernel metadata scrubbing facility is not available."));
                return false;
        }
 
        /* Do we need kernel-assisted metadata repair? */
        if (ctx->mode != SCRUB_MODE_DRY_RUN && !xfs_can_repair(ctx)) {
-               str_error(ctx, ctx->mntpoint,
+               str_info(ctx, ctx->mntpoint,
 _("Kernel metadata repair facility is not available.  Use -n to scrub."));
                return false;
        }