Thread (77 messages) 77 messages, 8 authors, 2019-05-21

Re: [PATCH 01/11] vfs: copy_file_range source range over EOF should fail

From: Dave Chinner <david@fromorbit.com>
Date: 2018-12-05 21:08:30
Also in: linux-fsdevel, linux-nfs, linux-unionfs

On Wed, Dec 05, 2018 at 06:12:52AM -0800, Christoph Hellwig wrote:
quoted
Realistically, though, I think an attempt to read beyond EOF for the
copy should result in behaviour like read() (i.e. return 0 bytes),
not EINVAL. The existing behaviour needs to change, though.
I agree with this statement.  So we don't we implement these semantics?
No, we don't.

I will rework the patch series to make attempts to copy beyond the
end of the source file return 0 to indicate that there is no more
data to copy rather than return an error.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help