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>
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)