aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-02-12 15:47:50 -0600
committerEric Sandeen <sandeen@redhat.com>2018-02-12 15:47:50 -0600
commit1df93c8d953fd736cbc6f4b62399cd5a1ab1fcc0 (patch)
tree9401901c5a032e619fb2f50342088f85832b9f10
parent1658224d2b5dfb003b336a70adb6b729304973c2 (diff)
downloadxfsprogs-dev-1df93c8d953fd736cbc6f4b62399cd5a1ab1fcc0.tar.gz
xfs_scrub: classify lack of ioctl support as a runtime error
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>
-rw-r--r--scrub/phase1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scrub/phase1.c b/scrub/phase1.c
index af93d0f3cb..82c80223b3 100644
--- a/scrub/phase1.c
+++ b/scrub/phase1.c
@@ -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;
}