summaryrefslogtreecommitdiff
path: root/src/import/export-tar.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/import/export-tar.c
parentd9e2daaf3d8649650cf9784b4fe9d9de4507da0c (diff)
btrfs: make btrfs_subvol_snapshot() parameters a flags field
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 c2fd656527..7fae06240a 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, true, false);
+ r = btrfs_subvol_snapshot_fd(sfd, e->temp_path, BTRFS_SNAPSHOT_READ_ONLY);
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);