diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-06 15:26:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-06 15:26:59 +0200 |
commit | f70a17f8d47ec8a62fa3b9b0bbe40fa107088540 (patch) | |
tree | 9851b37698e3c2846b1edb335134c984f850f470 /src/shared/machine-image.c | |
parent | cbf21ecc02746b3e651c5067658a9f1e99838a53 (diff) |
btrfs: add support for recursive btrfs snapshotting
Diffstat (limited to 'src/shared/machine-image.c')
-rw-r--r-- | src/shared/machine-image.c | 2 |
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: |