-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy_file_range op? #831
Comments
copy_file_range() just uses splice underneath the covers for the generic implementation anyway, can't you just use that directly from io_uring as well? If not, it could certainly be wired up. But the majority of the work would be enabling nonblocking issue of it, otherwise you'd end up in the same situation potentially as your unlink issue. |
Splice only works if one of the FDs is a pipe according the docs, so that won't work. |
Right, so you'd splice to a pipe, splice from a pipe. Not ideal, but it'd work. |
Won't that introduce an unnecessary copy? |
Yeah, I think a real
So if I'm copying on the same XFS/BTFS/EXT4 filesystem (& recently ZFS too I believe),
|
FWIW I was also just wishing this existed so that I could make use of reflinks. I think it could also be done using ioctl_ficlonerange) but AFAICT there's no way to do that with iouring right now either. It's also less portable than |
There's splice but no copy_file_range. It'd be great to have.
The text was updated successfully, but these errors were encountered: