summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Liu <jeff.liu@oracle.com>2011-04-24 16:25:31 +0200
committerJim Meyering <meyering@redhat.com>2011-04-25 10:58:57 +0200
commit32eb31999f62605872cfc1c32b85bd9a5fcd198e (patch)
treee0969ec56a89d53dc6691061a6e1d46c461d3715
parent0e6c96e68cc38954c6d77e2c9361708a383b2cea (diff)
downloadcoreutils-32eb31999f62605872cfc1c32b85bd9a5fcd198e.tar.xz
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.
-rw-r--r--src/copy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c
index 6edf52efc..65566a08f 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;
}