3.5.4 Common Task 4: Close a File Using the SMB Protocol

The sequence described in this example details how the Application uses the file client to close a previously open file or directory on the SMB file share.

Sequence diagram for Close a file using SMB

Figure 22: Sequence diagram for Close a file using SMB

  1. The file client sends an SMB2 CLOSE request (see [MS-SMB2] section 2.2.15) to the SMB file service to notify the SMB file service that no further access is required to the file and that any resources held by the SMB file service to process requests for the file on behalf of the file client can be released.

  2. The SMB file service sends an SMB2 CLOSE response (see [MS-SMB2] section 2.2.16) message back to the file client to indicate that the SMB file service has processed the SMB2 CLOSE request. This process is further described in [MS-SMB2] section 3.3.5.10.