Re: git: 643336549081 - main - If copy_file_range(2) fails with EXDEV, use fall-back.
Date: Tue, 04 Apr 2023 10:15:07 UTC
-------- 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 phk@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.