[][src]Function btrfsutil_sys::btrfs_util_create_subvolume

pub unsafe extern "C" fn btrfs_util_create_subvolume(
    path: *const c_char,
    flags: c_int,
    async_transid: *mut u64,
    qgroup_inherit: *mut btrfs_util_qgroup_inherit
) -> btrfs_util_error

btrfs_util_create_subvolume() - Create a new subvolume. @path: Where to create the subvolume. @flags: Must be zero. @async_transid: If not NULL, create the subvolume asynchronously (i.e., without waiting for it to commit it to disk) and return the transaction ID that it was created in. This transaction ID can be waited on with btrfs_util_wait_sync(). @qgroup_inherit: Qgroups to inherit from, or NULL.

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