summaryrefslogtreecommitdiff
path: root/src/shared/machine-image.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-06 15:26:59 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-06 15:26:59 +0200
commitf70a17f8d47ec8a62fa3b9b0bbe40fa107088540 (patch)
tree9851b37698e3c2846b1edb335134c984f850f470 /src/shared/machine-image.c
parentcbf21ecc02746b3e651c5067658a9f1e99838a53 (diff)
btrfs: add support for recursive btrfs snapshotting
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 ebe5a130f6..0b41860b5d 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 ? BTRFS_SNAPSHOT_READ_ONLY : 0) | BTRFS_SNAPSHOT_FALLBACK_COPY);
+ r = btrfs_subvol_snapshot(i->path, new_path, (read_only ? BTRFS_SNAPSHOT_READ_ONLY : 0) | BTRFS_SNAPSHOT_FALLBACK_COPY | BTRFS_SNAPSHOT_RECURSIVE);
break;
case IMAGE_RAW: