diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-06 11:47:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-06 14:54:58 +0200 |
commit | e9bc1871b974fa9e33d9c1a45e249e6d1c8bc562 (patch) | |
tree | f93a39ce8b13bcc2d0daa008224392735511898f /src/shared/btrfs-util.h | |
parent | d9e2daaf3d8649650cf9784b4fe9d9de4507da0c (diff) |
btrfs: make btrfs_subvol_snapshot() parameters a flags field
Diffstat (limited to 'src/shared/btrfs-util.h')
-rw-r--r-- | src/shared/btrfs-util.h | 9 |
1 files changed, 7 insertions, 2 deletions
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); |