This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] copy_file_range: New function to copy file data
On Nov 23 2017, Florian Weimer <fweimer@redhat.com> wrote:
> On 11/23/2017 04:39 PM, Andreas Schwab wrote:
>> On Nov 23 2017, Florian Weimer <fweimer@redhat.com> wrote:
>>
>>>> I don't think write can ever return 0 when writing more than zero bytes.
>>>
>>> I can drop the check. With the Linux VFS layer, it is difficult to tell
>>> whether this condition can ever happen, and if it does, we would likely
>>> enter an infinite loop without the check.
>> > Or we get the real error in the next loop.
>
> Tradition has it that it's a replacement for the ENOSPC condition,
A short write, yes, but not a zero write.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."