[][src]Function btrfsutil::bindings::btrfs_util_set_default_subvolume

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

btrfs_util_set_default_subvolume() - Set the default subvolume for a filesystem. @path: Path in a Btrfs filesystem. This may be any path in the filesystem; it does not have to refer to a subvolume unless @id is zero. @id: ID of subvolume to set as the default. If zero is given, the subvolume ID of @path is used.

This requires appropriate privilege (CAP_SYS_ADMIN).

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