[][src]Function btrfsutil_sys::btrfs_util_subvolume_path

pub unsafe extern "C" fn btrfs_util_subvolume_path(
    path: *const c_char,
    id: u64,
    path_ret: *mut *mut c_char
) -> btrfs_util_error

btrfs_util_subvolume_path() - Get the path of the subvolume with a given ID relative to the filesystem root. @path: Path on a Btrfs filesystem. @id: ID of subvolume to set as the default. If zero is given, the subvolume ID of @path is used. @path_ret: Returned path.

This requires appropriate privilege (CAP_SYS_ADMIN).

Return: %BTRFS_UTIL_OK on success, non-zero error code on failure.