summaryrefslogtreecommitdiff
path: root/src/test/test-btrfs.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-06 11:47:25 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-06 14:54:58 +0200
commite9bc1871b974fa9e33d9c1a45e249e6d1c8bc562 (patch)
treef93a39ce8b13bcc2d0daa008224392735511898f /src/test/test-btrfs.c
parentd9e2daaf3d8649650cf9784b4fe9d9de4507da0c (diff)
btrfs: make btrfs_subvol_snapshot() parameters a flags field
Diffstat (limited to 'src/test/test-btrfs.c')
-rw-r--r--src/test/test-btrfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test-btrfs.c b/src/test/test-btrfs.c
index 373ce43aeb..94437f7624 100644
--- a/src/test/test-btrfs.c
+++ b/src/test/test-btrfs.c
@@ -72,11 +72,11 @@ int main(int argc, char *argv[]) {
if (r < 0)
log_error_errno(r, "Failed to write file: %m");
- r = btrfs_subvol_snapshot("/xxxtest", "/xxxtest2", false, false);
+ r = btrfs_subvol_snapshot("/xxxtest", "/xxxtest2", 0);
if (r < 0)
log_error_errno(r, "Failed to make snapshot: %m");
- r = btrfs_subvol_snapshot("/xxxtest", "/xxxtest3", true, false);
+ r = btrfs_subvol_snapshot("/xxxtest", "/xxxtest3", BTRFS_SNAPSHOT_READ_ONLY);
if (r < 0)
log_error_errno(r, "Failed to make snapshot: %m");
@@ -92,7 +92,7 @@ int main(int argc, char *argv[]) {
if (r < 0)
log_error_errno(r, "Failed to remove subvolume: %m");
- r = btrfs_subvol_snapshot("/etc", "/etc2", true, true);
+ r = btrfs_subvol_snapshot("/etc", "/etc2", BTRFS_SNAPSHOT_READ_ONLY|BTRFS_SNAPSHOT_FALLBACK_COPY);
if (r < 0)
log_error_errno(r, "Failed to make snapshot: %m");