2.2.37.1 SMB2_QUERY_QUOTA_INFO

The SMB2_QUERY_QUOTA_INFO packet specifies the quota information to return.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ReturnSingle

RestartScan

Reserved

SidListLength

StartSidLength

StartSidOffset

SidBuffer (variable)

...

ReturnSingle (1 byte): A Boolean value, where zero represents FALSE and nonzero represents TRUE. If the ReturnSingle field is TRUE, the server MUST return a single value. Otherwise, the server SHOULD return the maximum number of entries that will fit in the maximum output size that is indicated in the request.

RestartScan (1 byte): A Boolean value, where zero represents FALSE and nonzero represents TRUE. If RestartScan is TRUE, the quota information MUST be read from the beginning. Otherwise, the quota information MUST be continued from the previous enumeration that was executed on this open.

Reserved (2 bytes): This field MUST NOT be used and MUST be reserved. The client MUST set this field to 0, and the server MUST ignore it on receipt.

SidListLength (4 bytes): The length, in bytes, of the SidBuffer when sent in format 1 as defined in the SidBuffer field or zero in all other cases.

StartSidLength (4 bytes): The length, in bytes, of the SID, as specified in [MS-DTYP] section 2.4.2.2, when sent in format 2 as defined in the SidBuffer field, or zero in all other cases.

StartSidOffset (4 bytes): The offset, in bytes, from the start of the SidBuffer field to the SID when sent in format 2 as defined in the SidBuffer field, or zero in all other cases.

SidBuffer (variable): If this field is empty, then SidListLength, StartSidLength and StartSidOffset MUST each be set to zero. If the field is not empty, then it MUST contain either one of the following two formats:

  1. A list of FILE_GET_QUOTA_INFORMATION structures, as described in [MS-FSCC] section 2.4.40.1.

  2. A SID.<81>