chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:09:35 +0000 (08:09 +0100)
commit2c38d6cdf68973efb758ab546fb7553e3320bb84
treee0925e5ee26833aabb6cb6d89ace44eea387eefe
parente50b238ba361def3ce7987b0ca58f4f90e6dfd99
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