machined: when cloning a raw disk image, also set the NOCOW flag

This commit is contained in:
Lennart Poettering
2015-01-08 23:13:45 +01:00
parent e45fc5e738
commit f2068bcce0
7 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ static void test_copy_file(void) {
assert_se(write_string_file(fn, "foo bar bar bar foo") == 0);
assert_se(copy_file(fn, fn_copy, 0, 0644) == 0);
assert_se(copy_file(fn, fn_copy, 0, 0644, 0) == 0);
assert_se(read_full_file(fn_copy, &buf, &sz) == 0);
assert_se(streq(buf, "foo bar bar bar foo\n"));