[cifs-protocol] [EXTERNAL] Re: Clarification on expected behavior with SMB2 short reads/writes. 
jra at samba.org
Tue Jun 2 18:51:14 UTC 2020
On Tue, Jun 02, 2020 at 06:40:51PM +0000, Obaid Farooqi wrote:
> Hi Jeremy:
> Windows redirector neither dictates the number of bytes read nor it checks for returned bytes. It is not a bug on redirector. Redirector's behavior is clearly documented in the MS-SMB2.
Hmmm. So the redirector behavior is being driven
directly by the COPY command here then ?
Not being able to see the source code for COPY,
I wonder if it is using the CopyFile API here,
in which case it may be an issue in the way the
CopyFile API is driving the redirector.
Either way, not checking read returns is a bug,
whoever is (not) doing it :-).
More information about the cifs-protocol