I'd like to know if overlapping areas are supported with copy_file_range. From my testing it works with xfs and ext4, but I'd like to have confirmation that this wont break in the future or with other file systems. Having this in the man page would help a lot. My use case for copying overlapping areas in the same file is prepending data to a file. I was hoping that copy_file_range would make this faster compared to mmap/memmove in case the file is on a NFS mount. Thanks
OK, after some testing I see that it does not work and not everything gets copied. Adding this limitation to the man page would help.