This reverts part of the previous change.
* src/copy.c (lseek_copy): When calling sparse_copy, do not
ask it to scan for zeros unless --sparse=always, so that it
can use copy_file_range which can be far more efficient.
if ( ! sparse_copy (src_fd, dest_fd, abuf, buf_size,
allow_reflink, src_name, dst_name,
ext_len,
- sparse_mode != SPARSE_NEVER ? hole_size : nullptr,
+ sparse_mode == SPARSE_ALWAYS ? hole_size : nullptr,
&n_read))
return false;