Partager via


2.2.7.6.2 Server Response

An SMB_COM_NT_TRANSACT (section 2.2.4.8) response for the NT_TRANSACT_SET_QUOTA subcommand MUST be sent by a server in reply to a client NT_TRANSACT_SET_QUOTA request when the request is successful.

The NT_TRANSACT_SET_QUOTA response is a special case of the SMB_COM_NT_TRANSACT command response. Only the NT_TRANSACT_SET_QUOTA specifics are described here.

NT_Trans_Parameters

No NT Trans parameters are returned in this response.

NT_Trans_Data

No NT Trans data is returned in this response.

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.

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 Sid parameter in FILE_QUOTA_INFORMATION did not contain a valid SID.

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.