[cifs-protocol] FSCTL_SRV_COPYCHUNK error response
ddiss at suse.de
Thu Nov 8 07:37:50 MST 2012
[MS-SMB2] currently describes the response to a FSCTL_SRV_COPYCHUNK SMB2
ioctl request with the following:
18.104.22.168 Sending an Error Response
When the server is responding with a failure to any command sent by
the client, the response message MUST be constructed as described
here. An error code other than one of the following indicates a
- Any status other than STATUS_SUCCESS in a FSCTL_SRV_COPYCHUNK or
FSCTL_SRV_COPYCHUNK_WRITE Response, when returning an
SRV_COPYCHUNK_RESPONSE as described in section 22.214.171.124.
Following the SMB2 header MUST be an SMB2 ERROR Response structure, as
specified in section 2.2.2.
ChunksWritten (4 bytes): If the Status field in the SMB2 header of the
response is not STATUS_INVALID_PARAMETER, as specified in [MS-ERREF]
section 2.3, this value indicates the number of chunks that were
successfully written. If the Status field in the SMB2 header of
the response is STATUS_INVALID_PARAMETER, this value indicates the
maximum number of chunks that the server will accept in a single
request. This would allow the client to correctly reissue the request.
I interpret the above text as meaning that the response to a
FSCTL_SRV_COPYCHUNK SMB2 ioctl request will not include an SMB2 Error
Response structure. Instead, a SRV_COPYCHUNK_RESPONSE structure will
be returned, either with the request maximums (in the case of
STATUS_INVALID_PARAMETER), or the amount successfully written.
Testing against Windows Server 2012 does not back up my interpretation.
Issuing a FSCTL_SRV_COPYCHUNK SMB2 ioctl request with an invalid
SourceKey field sees the server respond with an Error Response and
Have I misinterpreted the documentation, or would it make sense to
An error code other than one of the following indicates a failure:
- A status of STATUS_INVALID_PARAMETER in a FSCTL_SRV_COPYCHUNK or
More information about the cifs-protocol