aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/pr/tests/(public-mirror)
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-11-16 14:44:24 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-11-16 14:44:24 +0000
commit471d0cb24c6d1252f33dd1cdb6c907dd3b6b5ea4 (patch)
tree3ddd2aa370b431c66457a3feaa4691e72728b142 /usr.bin/pr/tests/(public-mirror)
parentfb79a940917329183a54dcecd89de389ead3c565 (diff)
pax: Use copy_file_rangeHEADmain
Use copy_file_range(2) instead of our own inefficient and unreliable attempt at detecting holes. If copy_file_range(2) is not available, which in theory should be never, we fall back to a simple read(2) / write(2) loop which makes no attempt to copy holes. This should speed up pax copy mode and cpio passthrough mode significantly. This includes refactoring much of the existing I/O code to use the size_t and ssize_t instead of int where appropriate. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: obiwac Differential Revision: https://reviews.freebsd.org/D58470
Diffstat (limited to 'usr.bin/pr/tests/(public-mirror)')
0 files changed, 0 insertions, 0 deletions