]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: prefix dedupe command error messages consistently
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jan 2017 20:12:40 +0000 (14:12 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 12 Jan 2017 20:12:40 +0000 (14:12 -0600)
Prefix the perror output of the dedupe command consistently.  All the
other perror calls reference the ioctl name directly, so we might as
well do that for all the dedupe cases.

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/reflink.c

index a09e82dca80a525d5dd653335a911b5aca6766a3..11b8fb4daab92f912fb28ad3daf68c2ecbac7858 100644 (file)
@@ -78,12 +78,12 @@ dedupe_ioctl(
                        goto done;
                }
                if (info->status < 0) {
-                       fprintf(stderr, "dedupe: %s\n",
+                       fprintf(stderr, "XFS_IOC_FILE_EXTENT_SAME: %s\n",
                                        _(strerror(-info->status)));
                        goto done;
                }
                if (info->status == XFS_EXTENT_DATA_DIFFERS) {
-                       fprintf(stderr, "dedupe: %s\n",
+                       fprintf(stderr, "XFS_IOC_FILE_EXTENT_SAME: %s\n",
                                        _("Extents did not match."));
                        goto done;
                }