This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] copy_file_range: New function to copy file data


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, and that would be sticky and happen again in the next loop iteration.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]