diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-22 13:08:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-22 13:27:53 +0200 |
commit | 21222ea5cdec65fa30a75bd5a78475459075b946 (patch) | |
tree | bd043503be06aa6a0c10ed097eece733a4466f47 /src/shared/btrfs-util.h | |
parent | 03091baac3c37094af6a30be31e4962dd26f8404 (diff) |
btrfs-util: introduce btrfs_is_filesystem() and make use of it where appropriate
Let's unify the code that checks whether an fd is on btrfs a bit.
(Also, rename btrfs_is_snapshot() to btrfs_is_subvol(), since that's
usually how this is referred to in our code)
Diffstat (limited to 'src/shared/btrfs-util.h')
-rw-r--r-- | src/shared/btrfs-util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/btrfs-util.h b/src/shared/btrfs-util.h index 02e46e30ea..a7eb895c93 100644 --- a/src/shared/btrfs-util.h +++ b/src/shared/btrfs-util.h @@ -49,7 +49,8 @@ typedef enum BtrfsSnapshotFlags { BTRFS_SNAPSHOT_RECURSIVE = 4, } BtrfsSnapshotFlags; -int btrfs_is_snapshot(int fd); +int btrfs_is_filesystem(int fd); +int btrfs_is_subvol(int fd); int btrfs_subvol_make(const char *path); int btrfs_subvol_make_label(const char *path); |