2.2.7.5.2 Server Response
An SMB_COM_NT_TRANSACT (section 2.2.4.8) response for an NT_TRANSACT_QUERY_QUOTA subcommand MUST be sent by a server in reply to a client NT_TRANSACT_QUERY_QUOTA subcommand request when the request is successful.
The NT_TRANSACT_QUERY_QUOTA response is a special case of the SMB_COM_NT_TRANSACT command response. Only the NT_TRANSACT_QUERY_QUOTA specifics are described here.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NT_Trans_Parameters |
|||||||||||||||||||||||||||||||
NT_Trans_Data (variable) |
|||||||||||||||||||||||||||||||
... |
NT_Trans_Parameters (4 bytes):
-
NT_Trans_Parameters { ULONG DataLength; }
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1DataLength
-
DataLength (4 bytes): The length, in bytes, of the returned user quota information. This field MUST be equal to the SMB_Parameters.Words.TotalDataCount field.
NT_Trans_Data (variable):
-
NT_Trans_Data { FILE_QUOTA_INFORMATION QuotaInformation[] (variable); }
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1QuotaInformation (variable)
...
-
QuotaInformation (variable): A concatenated list of FILE_QUOTA_INFORMATION structures, as specified in [MS-FSCC] section 2.4.40.
Error Codes
SMB error class |
SMB error code |
NT status code |
POSIX equivalent |
Description |
---|---|---|---|---|
ERRDOS |
ERRbadfunc |
STATUS_INVALID_DEVICE_REQUEST |
|
Quotas are not enabled on the volume. |
ERRDOS |
ERRbadfid |
STATUS_INVALID_HANDLE |
EBADF |
The Fid is invalid. |
ERRDOS |
ERRnoaccess |
STATUS_ACCESS_DENIED |
EPERM |
Access denied. |
ERRDOS |
ERRinvalidparam |
STATUS_INVALID_PARAMETER |
|
A parameter is invalid. |
ERRDOS |
ERRinvalidsid |
STATUS_INVALID_SID |
|
The StartSid parameter did not contain a valid SID. |
ERRSRV |
ERRerror |
STATUS_INVALID_SMB |
|
Invalid SMB. Byte count and sizes are inconsistent. |
ERRSRV |
ERRinvtid |
STATUS_BAD_TID |
|
The TID is no longer valid. |
ERRSRV |
ERRnomem |
STATUS_INSUFF_SERVER_RESOURCES |
ENOMEM |
The server is out of resources. |
ERRSRV |
ERRbaduid |
STATUS_BAD_UID |
|
The UID supplied is not known to the session. |
ERRSRV |
|
STATUS_QUOTA_LIST_INCONSISTENT |
|
The SidList parameter did not contain a valid, properly formed list. |
ERRSRV |
ERRmoredata |
STATUS_BUFFER_OVERFLOW |
|
The number of bytes of changed data exceeded the MaxParameterCount field in the client request. |
ERRHRD |
ERRdata |
STATUS_DATA_ERROR |
EIO |
Disk I/O error. |
ERRHRD |
ERRnowrite |
STATUS_MEDIA_WRITE_PROTECTED |
EROFS |
Attempt to modify a read-only file system. |