btrfs-util: introduce btrfs_is_filesystem() and make use of it where appropriate
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2015 11:08:19 +0000 (13:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2015 11:27:53 +0000 (13:27 +0200)
commit21222ea5cdec65fa30a75bd5a78475459075b946
treebd043503be06aa6a0c10ed097eece733a4466f47
parent03091baac3c37094af6a30be31e4962dd26f8404
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)
src/shared/btrfs-util.c
src/shared/btrfs-util.h
src/shared/machine-image.c