-------- Alexey Dokuchaev writes: > Okay, but did it leave an empty file, I wonder?
I didn't check, but it probably would, because cp(1) must have opened and created the destination in order to call copy_file_range(2). PS: I'll note that EXDEV is not a documented return value from copy_file_range(2), and my surprise that cp(1) did not revert to the fall-back, no matter why copy_file_range(2) failed. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.