From: Jeff Liu Date: Sun, 24 Apr 2011 14:25:31 +0000 (+0200) Subject: copy: include both src and dest names in clone failure diagnostic X-Git-Tag: v8.12~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32eb31999f62605872cfc1c32b85bd9a5fcd198e;p=thirdparty%2Fcoreutils.git copy: include both src and dest names in clone failure diagnostic * src/copy.c (copy_reg): Upon btrfs clone failure, print not just the destination file name, but also the source file name. That may be useful upon failure of a cross-device clone attempt. --- diff --git a/src/copy.c b/src/copy.c index 6edf52efc6..65566a08fe 100644 --- a/src/copy.c +++ b/src/copy.c @@ -974,7 +974,8 @@ copy_reg (char const *src_name, char const *dst_name, { if (!clone_ok) { - error (0, errno, _("failed to clone %s"), quote (dst_name)); + error (0, errno, _("failed to clone %s from %s"), + quote (dst_name), quote (src_name)); return_val = false; goto close_src_and_dst_desc; }