libblkid-tiny: add btrfs probe info
authorDaniel Golle <daniel@makrotopia.org>
Mon, 22 Dec 2014 11:34:42 +0000 (12:34 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 7 Jan 2015 11:35:31 +0000 (12:35 +0100)
commit6a448a100c7ce8b8b85f262ba1258e54363da9cc
tree398b1f06b97c8ce570a4659a007bfcff7eadaa6d
parent1e4579556ca54bdf9ccb86933c64bc6094c04e9a
libblkid-tiny: add btrfs probe info

This only adds the magic for btrfs to show btrfs volumes in
block detect.

In order to properly support btrfs with more than one device and avoid
trying to mount the same device group once for each instance we have to
make sure that only one device per group will be mounted (btrfs then
automatically detects all other devices of the group).
For unmounting, the opposite should be applied: umount if called for
any of the devices in a mounted device group, unmount the filesystem.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
CMakeLists.txt
libblkid-tiny/btrfs.c [new file with mode: 0644]
libblkid-tiny/libblkid-tiny.c