]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: go back to copy_file_range optimization
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Aug 2025 17:37:50 +0000 (10:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Aug 2025 00:40:29 +0000 (17:40 -0700)
commit306de6c2619e2a9339ade9a88d55c4940942d516
treeb305e57cb6fa94bc1b012d28dca3a0b7d2386bed
parentb7fc76269bbc830bf96320cd5cca3cfd90d33f68
cp: go back to copy_file_range optimization

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.
src/copy.c