Message384105
| Author |
Albert.Zeyer |
| Recipients |
Albert.Zeyer, desbma, giampaolo.rodola, koobs, pablogsal, vstinner |
| Date |
2020年12月31日.09:20:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1609406413.2.0.610785307668.issue37157@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I did some further research (with all details here: https://stackoverflow.com/a/65518879/133374).
See vfs_copy_file_range in the Linux kernel. This first tries to call remap_file_range if possible.
FICLONE calls ioctl_file_clone. ioctl_file_clone calls vfs_clone_file_range. vfs_clone_file_range calls remap_file_range. I.e. FICLONE == remap_file_range.
So using copy_file_range (if available) should be the most generic solution, which includes copy-on-write support, and server-side copy support. |
|