copy: use btrfs reflinking only whe we know we copy full files

This commit is contained in:
Lennart Poettering
2014-12-12 17:30:25 +01:00
parent 19ee32dc4d
commit 7430ec6ac0
8 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -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;