3.2.4.26 Application Requests Querying File System Attributes
The application provides:
A Client.TreeConnect.TreeID (TID) of the share to be queried.
The information level that describes the format of the information being queried, as specified in [MS-FSCC] section 2.5.
The client requests the retrieval of attributes from a file system using either of the two following commands. The client MUST map the application-provided information level to the QUERY_FS Information Levels, as specified in section 2.2.8.
SMB_COM_QUERY_INFORMATION_DISK (section 2.2.4.57) (deprecated)
This command MUST be sent by a client to obtain the capacity and remaining free space on the volume hosting the subtree indicated by the TID in the SMB Header (section 2.2.3.1). It MUST be constructed as defined in section 2.2.4.57.1.
TRANS2_QUERY_FS_INFORMATION (section 2.2.6.4)
The client MUST construct the TRANS2_QUERY_FS_INFORMATION Request (section 2.2.6.4.1) message. The request MUST be transported to the server using the Transaction2 subprotocol.
The request MUST be sent to the server as described in section 3.2.4.1.