From 32eb31999f62605872cfc1c32b85bd9a5fcd198e Mon Sep 17 00:00:00 2001 From: Jeff Liu Date: Sun, 24 Apr 2011 16:25:31 +0200 Subject: 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. --- src/copy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2