[SMB3][PATCH] fix copy_file_range when copying beyond end of source file

Steve French smfrench at gmail.com
Thu Jun 20 01:44:22 UTC 2019


Patch attached fixes the case where copy_file_range over an SMB3 mount
tries to go beyond the end of file of the source file.  This fixes
xfstests generic/430 and generic/431

Amir's patches had added a similar change in the VFS layer, but
presumably harmless to have the check in cifs.ko as well to ensure
that we don't try to copy beyond end of the source file (otherwise
SMB3 servers will return an error on copychunk rather than doing the
partial copy (up to end of the source file) that copy_file_range
expects).



-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SMB3-fix-copy-file-range-when-beyond-size-of-source-.patch
Type: text/x-patch
Size: 1568 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20190619/4fa2263b/0001-SMB3-fix-copy-file-range-when-beyond-size-of-source-.bin>


More information about the samba-technical mailing list