summaryrefslogtreecommitdiff
path: root/src/test/test-copy.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 16:24:33 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-12 17:30:25 +0100
commit7430ec6ac08f2c0416d9f806964c46b30f3862b2 (patch)
tree2b42cca3d6b3cc117aa446718585c1a21c8c18aa /src/test/test-copy.c
parent19ee32dc4d337a033c95c7d3302666f2ea4340bd (diff)
copy: use btrfs reflinking only whe we know we copy full files
Diffstat (limited to 'src/test/test-copy.c')
-rw-r--r--src/test/test-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-copy.c b/src/test/test-copy.c
index d2cad08cb6..d70a0be2a2 100644
--- a/src/test/test-copy.c
+++ b/src/test/test-copy.c
@@ -67,8 +67,8 @@ static void test_copy_file_fd(void) {
assert_se(out_fd >= 0);
assert_se(write_string_file(in_fn, text) == 0);
- assert_se(copy_file_fd("/a/file/which/does/not/exist/i/guess", out_fd) < 0);
- assert_se(copy_file_fd(in_fn, out_fd) >= 0);
+ assert_se(copy_file_fd("/a/file/which/does/not/exist/i/guess", out_fd, true) < 0);
+ assert_se(copy_file_fd(in_fn, out_fd, true) >= 0);
assert_se(lseek(out_fd, SEEK_SET, 0) == 0);
assert_se(read(out_fd, buf, sizeof(buf)) == sizeof(text) - 1);