summaryrefslogtreecommitdiff
path: root/src/import/export-tar.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/import/export-tar.c
parentcbf21ecc02746b3e651c5067658a9f1e99838a53 (diff)
btrfs: add support for recursive btrfs snapshotting
Diffstat (limited to 'src/import/export-tar.c')
-rw-r--r--src/import/export-tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/export-tar.c b/src/import/export-tar.c
index 7fae06240a..9bd0251696 100644
--- a/src/import/export-tar.c
+++ b/src/import/export-tar.c
@@ -294,7 +294,7 @@ int tar_export_start(TarExport *e, const char *path, int fd, ImportCompressType
return r;
/* Let's try to make a snapshot, if we can, so that the export is atomic */
- r = btrfs_subvol_snapshot_fd(sfd, e->temp_path, BTRFS_SNAPSHOT_READ_ONLY);
+ r = btrfs_subvol_snapshot_fd(sfd, e->temp_path, BTRFS_SNAPSHOT_READ_ONLY|BTRFS_SNAPSHOT_RECURSIVE);
if (r < 0) {
log_debug_errno(r, "Couldn't create snapshot %s of %s, not exporting atomically: %m", e->temp_path, path);
free(e->temp_path);