btrfs: make btrfs_subvol_snapshot() parameters a flags field

This commit is contained in:
Lennart Poettering
2015-04-06 14:54:58 +02:00
parent d9e2daaf3d
commit e9bc1871b9
8 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -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: