Compartir a través de


3.3.5.21 Receiving an SMB_COM_SEEK Request

Upon receipt of an SMB_COM_SEEK command Request (section 2.2.4.19.1), the server MUST first validate the FID in the request. If the FID is valid, the server MUST update the file pointer associated with the FID according to the instructions in the SMB_COM_SEEK Request (section 2.2.4.19.2). The new offset is returned in the response. The SMB_COM_SEEK Response message MUST be constructed. If an error was generated by the request, the server MUST send an error response.

The Offset field in the SMB_COM_SEEK (section 2.2.4.19) request and response is a 32-bit value. If the CAP_LARGE_FILES capability has been negotiated, then 64-bit offsets are supported. The server MUST return only the lower order 32 bits of the actual 64-bit offset.<272>

The response MUST be sent to the client as specified in section 3.3.4.1.