]> git.ipfire.org Git - thirdparty/snapper.git/commit
Implement BtrfsUtils::get_subvolume using libbtrfsutil 771/head
authorDavid Sterba <dsterba@suse.com>
Thu, 19 Jan 2023 16:10:44 +0000 (17:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 19 Jan 2023 18:40:03 +0000 (19:40 +0100)
commitaff3e37b378e18a37e7e219ee709bb0e0958d9db
tree34ffafc74c7e347cc144cf438cfa029000a5706f
parent3f950a8464a3e8a039c5c330afaedc6bc939b963
Implement BtrfsUtils::get_subvolume using libbtrfsutil

The helper from btrfs_subvolid_resolve from libbtrfs can be
reimplemented by means of libbtrfsutil. btrfs_util_subvolume_path_fd is
practically equivalent to btrfs_subvolid_resolve i.e. requires the
privileged ioctl. There's another way available to all users but is slow
as it needs to iterate overall subvolumes. This is implemented as
fallback.
package/snapper.changes
snapper/BtrfsUtils.cc