Thread (32 messages) 32 messages, 7 authors, 2023-07-24

Re: [RFC PATCH 1/4] splice: Fix corruption of spliced data after splice() returns

From: Miklos Szeredi <miklos@szeredi.hu>
Date: 2023-07-24 13:56:41
Also in: linux-fsdevel, linux-mm, lkml

On Mon, 24 Jul 2023 at 11:44, David Howells [off-list ref] wrote:
Linus Torvalds [off-list ref] wrote:
quoted
quoted
So what's the API that provides the semantics of _copying_?
It's called "read()" and "write()".
What about copy_file_range()?  That seems to fall back to splicing if not
directly implemented by the filesystem.  It looks like the manpage for that
needs updating too - or should that actually copy?
Both source and destination of copy_file_range() are regular files and
do_splice_direct() is basically equivalent to write(dest, mmap of
source), no refd buffers remain beyond the end of the syscall.  What
is it that should be updated in the manpage?

Thanks,
Miklos
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help