diff options
Diffstat (limited to 'cmds-receive.c')
-rw-r--r-- | cmds-receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-receive.c b/cmds-receive.c index 6d50cd31..094a6073 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -771,7 +771,7 @@ static int process_clone(const char *path, u64 offset, u64 len, clone_args.src_length = len; clone_args.dest_offset = offset; ret = ioctl(r->write_fd, BTRFS_IOC_CLONE_RANGE, &clone_args); - if (ret) { + if (ret < 0) { ret = -errno; error("failed to clone extents to %s\n%s\n", path, strerror(-ret)); |