| To: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 5/5] xfs_io: print dedupe errors to stderr, not stdout |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Tue, 2 Feb 2016 16:14:10 +1100 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20160123003531.2475.59752.stgit@xxxxxxxxxxxxxxxx> |
| References: | <20160123003502.2475.99558.stgit@xxxxxxxxxxxxxxxx> <20160123003531.2475.59752.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Fri, Jan 22, 2016 at 04:35:31PM -0800, Darrick J. Wong wrote:
> Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
> ---
> io/reflink.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
>
> diff --git a/io/reflink.c b/io/reflink.c
> index def01be..a09e82d 100644
> --- a/io/reflink.c
> +++ b/io/reflink.c
> @@ -78,11 +78,13 @@ dedupe_ioctl(
> goto done;
> }
> if (info->status < 0) {
> - printf("dedupe: %s\n", _(strerror(-info->status)));
> + fprintf(stderr, "dedupe: %s\n",
> + _(strerror(-info->status)));
> goto done;
> }
> if (info->status == XFS_EXTENT_DATA_DIFFERS) {
> - printf(_("Extents did not match.\n"));
> + fprintf(stderr, "dedupe: %s\n",
> + _("Extents did not match."));
> goto done;
> }
> if (args->length != 0 &&
I think this patch breaks dedupe detection in xfstests. I see the
dedupe tests running instead of being detected as not supported, and
all the diffs from test failures contain:
+dedupe: Invalid argument
This is on 4.5-rc2, so I suspect it's not returning the expected
"not supported" error to xfstests from the ioctl.
Cheers,
Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/3] xfs: lock rt summary inode on allocation, Eric Sandeen |
|---|---|
| Next by Date: | Re: [PATCH 5/5] xfs_io: print dedupe errors to stderr, not stdout, Darrick J. Wong |
| Previous by Thread: | [PATCH 0/3] xfs: fix realtime device assert failures, Dave Chinner |
| Next by Thread: | Re: [PATCH 5/5] xfs_io: print dedupe errors to stderr, not stdout, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |