3.2.5.14.3 Handling a Server-Side Data Copy Response

If the status code is STATUS_INVALID_PARAMETER and the StructureSize of the response indicates that the server has provided an SRV_COPYCHUNK_RESPONSE, the client MUST return a result of STATUS_INVALID_PARAMETER to the application and SHOULD also return the values in the accompanying SRV_COPYCHUNK_RESPONSE that indicate the maximum limits the server supports for server side copy operations.

Otherwise, if the Status field of the SMB2 header of the response indicates an error, the client MUST return the received status code to the calling application, ignoring any accompanying SRV_COPYCHUNK_RESPONSE.

If the Status field of the SMB2 header of the response indicates success, the client MUST copy the received information in the SMB2 IOCTL Response following the SMB2 header that is described by OutputOffset and OutputCount into the buffer that is provided by the calling application for receiving the response output buffer. The client MUST return success and the OutputCount to the application.

Show: