-
Cyrill Gorcunov authored
It is been found that BTRFS uses per subvolume device numbering scheme which causes some of our tests to fail if they are laying on this filesystem. Here we introduce minimal engine which parses subvolumes present on mount point. The interface is two functions - btrfs_parse_mountinfo: this one parses subvolume and caches the results - is_btrfs_subvol: test if device id is laying on subvolume In the code we assume that cpu we're running on is little endian, thus if one day we run on big ending machine the code must be updated accordingly. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
d4eaf8d6