]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: repair_f should use its own name
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Jun 2019 21:04:42 +0000 (17:04 -0400)
committerEric Sandeen <sandeen@redhat.com>
Tue, 25 Jun 2019 21:04:42 +0000 (17:04 -0400)
If the repair command fails, it should tag the error message with its
own name ("repair").

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>
io/scrub.c

index 2ff1a6afb80de683831559fb3f326bb76371e5a9..052497be5cc62193a88e23b99118c07e801e985f 100644 (file)
@@ -293,7 +293,7 @@ repair_ioctl(
 
        error = ioctl(fd, XFS_IOC_SCRUB_METADATA, &meta);
        if (error)
-               perror("scrub");
+               perror("repair");
        if (meta.sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
                printf(_("Corruption remains.\n"));
        if (meta.sm_flags & XFS_SCRUB_OFLAG_PREEN)