From e9bc1871b974fa9e33d9c1a45e249e6d1c8bc562 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Apr 2015 11:47:25 +0200 Subject: btrfs: make btrfs_subvol_snapshot() parameters a flags field --- src/shared/btrfs-util.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/shared/btrfs-util.h') diff --git a/src/shared/btrfs-util.h b/src/shared/btrfs-util.h index 06ecc11b42..e3ad98750f 100644 --- a/src/shared/btrfs-util.h +++ b/src/shared/btrfs-util.h @@ -43,13 +43,18 @@ typedef struct BtrfsQuotaInfo { uint64_t exclusive_max; } BtrfsQuotaInfo; +typedef enum BtrfsSnapshotFlags { + BTRFS_SNAPSHOT_FALLBACK_COPY = 1, + BTRFS_SNAPSHOT_READ_ONLY = 2, +} BtrfsSnapshotFlags; + int btrfs_is_snapshot(int fd); int btrfs_subvol_make(const char *path); int btrfs_subvol_make_label(const char *path); -int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, bool read_only, bool fallback_copy); -int btrfs_subvol_snapshot(const char *old_path, const char *new_path, bool read_only, bool fallback_copy); +int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlags flags); +int btrfs_subvol_snapshot(const char *old_path, const char *new_path, BtrfsSnapshotFlags flags); int btrfs_subvol_set_read_only_fd(int fd, bool b); int btrfs_subvol_set_read_only(const char *path, bool b); -- cgit v1.2.3-54-g00ecf