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.


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

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


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

DataLength

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


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

QuotaInformation (variable)

...

QuotaInformation (variable): A concatenated list of FILE_QUOTA_INFORMATION structures, as specified in [MS-FSCC] section 2.4.33.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS
(0x01)

ERRbadfunc
(0x0001)

STATUS_INVALID_DEVICE_REQUEST
(0xC0000008)

Quotas are not enabled on the volume.

ERRDOS
(0x01)

ERRbadfid
(0x0006)

STATUS_INVALID_HANDLE
(0xC0000008)

EBADF

The Fid is invalid.

ERRDOS
(0x01)

ERRnoaccess
(0x0005)

STATUS_ACCESS_DENIED
(0xC0000022)

EPERM

Access denied.

ERRDOS
(0x01)

ERRinvalidparam
(0x0057)

STATUS_INVALID_PARAMETER
(0xC000000D)

A parameter is invalid.

ERRDOS
(0x01)

ERRinvalidsid
(0x0539)

STATUS_INVALID_SID
(0xC0000078)

The  StartSid parameter did not contain a valid SID.

ERRSRV
(0x02)

ERRerror
(0x0001)

STATUS_INVALID_SMB
(0x00010002)

Invalid SMB. Byte count and sizes are inconsistent.

ERRSRV
(0x02)

ERRinvtid
(0x0005)

STATUS_BAD_TID
(0x00050002)

The TID is no longer valid.

ERRSRV
(0x02)

ERRnomem
(0x0008)

STATUS_INSUFF_SERVER_RESOURCES
(0xC0000205)

ENOMEM

The server is out of resources.

ERRSRV
(0x02)

ERRbaduid
(0x005B)

STATUS_BAD_UID
(0x005B0002)

The UID supplied is not known to the session.

ERRSRV
(0x02)

STATUS_QUOTA_LIST_INCONSISTENT
(0xC0000266)

The SidList parameter did not contain a valid, properly formed list.

ERRSRV
(0x02)

ERRmoredata
(0x00EA)

STATUS_BUFFER_OVERFLOW
(0x80000005)

The number of bytes of changed data exceeded the MaxParameterCount field in the client request.

ERRHRD
(0x03)

ERRdata
(0x0017)

STATUS_DATA_ERROR
(0xC000003E)

EIO

Disk I/O error.

ERRHRD
(0x03)

ERRnowrite
(0x0013)

STATUS_MEDIA_WRITE_PROTECTED
(0xC00000A2)

EROFS

Attempt to modify a read-only file system.

Show: