Skip to main content

sparse_copy

Function sparse_copy 

Source
pub fn sparse_copy(src: &Path, dst: &Path) -> Result<u64>
Expand description

Sparse-aware copy via SEEK_DATA/SEEK_HOLE and per-extent copy.

Public for callers that want to skip the reflink attempt — e.g. when they already know the destination filesystem doesn’t support reflinks, or for tests that want to exercise the fallback path.