summaryrefslogtreecommitdiff
path: root/src/shared/machine-image.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/shared/machine-image.c
parentd9e2daaf3d8649650cf9784b4fe9d9de4507da0c (diff)
btrfs: make btrfs_subvol_snapshot() parameters a flags field
Diffstat (limited to 'src/shared/machine-image.c')
-rw-r--r--src/shared/machine-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c
index fb72123f1a..ebe5a130f6 100644
--- a/src/shared/machine-image.c
+++ b/src/shared/machine-image.c
@@ -491,7 +491,7 @@ int image_clone(Image *i, const char *new_name, bool read_only) {
case IMAGE_DIRECTORY:
new_path = strjoina("/var/lib/machines/", new_name);
- r = btrfs_subvol_snapshot(i->path, new_path, read_only, true);
+ r = btrfs_subvol_snapshot(i->path, new_path, (read_only ? BTRFS_SNAPSHOT_READ_ONLY : 0) | BTRFS_SNAPSHOT_FALLBACK_COPY);
break;
case IMAGE_RAW: