3.3.5.9.9 Handling the SMB2_CREATE_QUERY_ON_DISK_ID Create Context

If the create request also contains either of the SMB2_CREATE_DURABLE_HANDLE_RECONNECT or SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2 contexts, this section MUST be skipped.

The server MUST construct an SMB2_CREATE_QUERY_ON_DISK_ID Create Context structure, as specified in section 2.2.14.2.9.

The server MUST set the DiskFileId by querying the underlying object store in an implementation-specific manner. The DiskFileId value MUST be the same as the value returned in an SMB2 QUERY_INFO response to an SMB2 QUERY_INFO request with the FileInformationClass field set to the FileInternalInformation value, as specified in section 3.3.5.20.1. The DiskFileId value SHOULD uniquely identify the file among all other files sharing the same VolumeId value on the server.

The server MUST set the VolumeId field by querying the underlying object store in an implementation-specific manner. The VolumeId value SHOULD uniquely identify the storage volume for all volumes on the server.

In the "Response Construction" phase, the server MUST include the create context in the buffer described by the CreateContextLength and CreateContextOffset fields of the response.

Show: