]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_scrub: fix reporting of EINVAL for online repairs
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 27 Feb 2020 20:49:27 +0000 (15:49 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 27 Feb 2020 20:49:27 +0000 (15:49 -0500)
The arguments to str_corrupt() are in the wrong order.  Fix that.

Fixes: de5d20ece73f579 ("libfrog: convert scrub.c functions to negative error codes")
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/scrub.c

index 2885aa34e4769600c126848da20739a6f36cd049..81a9ca858f2041601c3cfb29eea3716d9ef67e2b 100644 (file)
@@ -744,9 +744,8 @@ _("Filesystem is shut down, aborting."));
                /* fall through */
        case EINVAL:
                /* Kernel doesn't know how to repair this? */
-               str_corrupt(ctx,
-_("%s: Don't know how to fix; offline repair required."),
-                               descr_render(&dsc));
+               str_corrupt(ctx, descr_render(&dsc),
+_("Don't know how to fix; offline repair required."));
                return CHECK_DONE;
        case EROFS:
                /* Read-only filesystem, can't fix. */