Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166439469
D27935.id81565.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D27935.id81565.diff
View Options
diff --git a/lib/libc/sys/copy_file_range.2 b/lib/libc/sys/copy_file_range.2
--- a/lib/libc/sys/copy_file_range.2
+++ b/lib/libc/sys/copy_file_range.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 30, 2020
+.Dd January 2, 2021
.Dt COPY_FILE_RANGE 2
.Os
.Sh NAME
@@ -117,6 +117,15 @@
.Dv SEEK_DATA
arguments and this system call for the
data ranges found.
+.Pp
+For best performance, call
+.Fn copy_file_range
+with the largest
+.Fa len
+value possible.
+It is interruptible on most file systems,
+so there is no penalty for using very large len values, even SSIZE_MAX.
+.Pp
.Sh RETURN VALUES
If it succeeds, the call returns the number of bytes copied, which can be fewer
than
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 2:16 PM (8 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36663693
Default Alt Text
D27935.id81565.diff (695 B)
Attached To
Mode
D27935: add recommendation for using a large "len" argument
Attached
Detach File
Event Timeline
Log In to Comment