projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e6c96e
)
copy: include both src and dest names in clone failure diagnostic
author
Jeff Liu
<jeff.liu@oracle.com>
Sun, 24 Apr 2011 14:25:31 +0000
(16:25 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Mon, 25 Apr 2011 08:58:57 +0000
(10:58 +0200)
* 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.
src/copy.c
patch
|
blob
|
history
diff --git
a/src/copy.c
b/src/copy.c
index
6edf52e
..
65566a0
100644
(file)
--- 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;
}