diff mbox series

[10/12] xfs_io: repair_f should use its own name

Message ID 156104943322.1172531.14877921651268434165.stgit@magnolia (mailing list archive)
State Accepted
Headers show
Series xfsprogs-5.1: fix various problems | expand

Commit Message

Darrick J. Wong June 20, 2019, 4:50 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

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>
---
 io/scrub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eric Sandeen June 20, 2019, 7:52 p.m. UTC | #1
On 6/20/19 11:50 AM, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
> 
> 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>

> ---
>  io/scrub.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff --git a/io/scrub.c b/io/scrub.c
> index 2ff1a6af..052497be 100644
> --- a/io/scrub.c
> +++ b/io/scrub.c
> @@ -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)
>
diff mbox series

Patch

diff --git a/io/scrub.c b/io/scrub.c
index 2ff1a6af..052497be 100644
--- a/io/scrub.c
+++ b/io/scrub.c
@@ -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)