Function btrfsutil_sys::btrfs_util_create_snapshot
source · pub unsafe extern "C" fn btrfs_util_create_snapshot(
source: *const c_char,
path: *const c_char,
flags: c_int,
async_transid: *mut u64,
qgroup_inherit: *mut btrfs_util_qgroup_inherit
) -> btrfs_util_error
Expand description
btrfs_util_create_snapshot() - Create a new snapshot from a source subvolume path. @source: Path of the existing subvolume to snapshot. @path: Where to create the snapshot. @flags: Bitmask of BTRFS_UTIL_CREATE_SNAPSHOT_* flags. @async_transid: See btrfs_util_create_subvolume(). If %BTRFS_UTIL_CREATE_SNAPSHOT_RECURSIVE was in @flags, then this will contain the largest transaction ID of all created subvolumes. @qgroup_inherit: See btrfs_util_create_subvolume().
Return: %BTRFS_UTIL_OK on success, non-zero error code on failure.