copy: use btrfs reflinking only whe we know we copy full files
This commit is contained in:
@@ -215,7 +215,7 @@ static int make_backup(const char *target, const char *x) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = copy_bytes(src, fileno(dst), (off_t) -1);
|
||||
r = copy_bytes(src, fileno(dst), (off_t) -1, true);
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user