Subject: copy_file_range.2: glibc no longer provides fallback after 2.30
PATCH 1/1 Subject: copy_file_range.2: glibc no longer provides fallback after 2.30
From: Sebastian Andrzej Siewior <[email protected]>
Update the documentation to note that glibc no longer provides a user-space fallback for copy_file_range() when the system call is not available, as of glibc 2.30. Applications must now handle ENOSYS themselves.
--- man/man2/copy_file_range.2 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
man/man2/copy_file_range.2 +9 -3
@@ -202,10 +202,16 @@ that was also backported to earlier stable kernels. .SH STANDARDS Linux, GNU. .SH HISTORY -Linux 4.5, -but glibc 2.27 provides a user-space -emulation when it is not available. +Linux 4.5. +Before glibc 2.30, the glibc wrapper function provided a user-space +fallback implementation when the kernel did not implement this +system call. Since glibc 2.30, that fallback has been removed; the +function now fails with ENOSYS if the kernel lacks support for +.BR copy_file_range (). +.\" Fallback introduced in glibc 2.27: .\" https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f +.\" Fallback removed in glibc 2.30: +.\" https://sourceware.org/git/?p=glibc.git;a=commit;h=50c6ee3e74e08b8205f18dfb2830e9ec1bcf2ad4 .SH NOTES If .I fd_in
Signature · 1 line
2.48.1
Alejandro Colomar
maintainerHi Wes,
Quoted 1 line · Wes Gibbs
From: Sebastian Andrzej Siewior <[email protected]>
This patch doesn't have a Signed-off-by from Sebastian. Shouldn't he sign it? Or am I missing something?
Quoted 16 lines
Update the documentation to note that glibc no longer provides a user-space fallback for
copy_file_range()when the system call is not available, as of glibc 2.30. Applications must now handle ENOSYS themselves.Signed-off-by Wes Gibbs <[email protected]>--- man/man2/copy_file_range.2 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)man/man2/copy_file_range.2 +0
-0
man/man2/copy_file_range.2 that was also backported to earlier stable kernels. · line 206
Quoted 8 lines
man/man2/copy_file_range.2 +2
-3@@ -202,10 +202,16 @@ that was also backported to earlier stable kernels. .SH STANDARDS Linux, GNU. .SH HISTORY -Linux 4.5, -but glibc 2.27 provides a user-space -emulation when it is not available. +Linux 4.5. +Before glibc 2.30, the glibc wrapper function provided a user-space
Could you please specify the initial version of glibc that wraps it?
man/man2/copy_file_range.2 that was also backported to earlier stable kernels. · line 208
Quoted 2 lines
man/man2/copy_file_range.2 +2
-0+fallback implementation when the kernel did not implement this +system call. Since glibc 2.30, that fallback has been removed; the
Please use semantic newlines. See man-pages(7):
$ MANWIDTH=72 man man-pages | sed -n '/Use semantic newlines/,/^$/p'
Use semantic newlines
In the source of a manual page, new sentences should be started on
new lines, long sentences should be split into lines at clause
breaks (commas, semicolons, colons, and so on), and long clauses
should be split at phrase boundaries. This convention, sometimes
known as "semantic newlines", makes it easier to see the effect of
patches, which often operate at the level of individual sentences,
clauses, or phrases.man/man2/copy_file_range.2 that was also backported to earlier stable kernels. · line 210
Quoted 2 lines
man/man2/copy_file_range.2 +2
-0+function now fails with ENOSYS if the kernel lacks support for +.BR copy_file_range ().
The contents of the paragraph look good to me.
man/man2/copy_file_range.2 that was also backported to earlier stable kernels. · line 214
Quoted 4 lines
man/man2/copy_file_range.2 +3
-0+.\" Fallback introduced in glibc 2.27: .\" https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f +.\" Fallback removed in glibc 2.30: +.\" https://sourceware.org/git/?p=glibc.git;a=commit;h=50c6ee3e74e08b8205f18dfb2830e9ec1bcf2ad4
This link gives me
404 - Unknown commit object
Can you please check?
Have a lovely night!
Alex
Quoted 7 lines
man/man2/copy_file_range.2 +0
-0.SH NOTES If .I fd_inSignature · 1 line
2.48.1
Signature · 2 lines
<https://www.alejandro-colomar.es> Use port 80 (that is, <...:80/>).