pub fn subvolume_default_get(fd: BorrowedFd<'_>) -> Result<u64>Expand description
Query the ID of the default subvolume of the filesystem referred to by
fd.
Searches the root tree for the BTRFS_DIR_ITEM_KEY entry at objectid
BTRFS_ROOT_TREE_DIR_OBJECTID that stores the default subvolume ID.
Returns FS_TREE_OBJECTID if no default has been set.
Requires CAP_SYS_ADMIN.