2.2.6.6.2 Response

 For the information levels greater than 0x100, the transaction response has 1 parameter word that SHOULD be ignored by the client.

Trans2_Parameters:

 Trans2_Parameters
   {
     USHORT EaErrorOffset;
   }

EaErrorOffset (2 bytes): If Request.Trans2_Parameters.InformationLevel is not SMB_INFO_QUERY_EAS_FROM_LIST, this field MUST be zero (0x0000). If InformationLevel is SMB_INFO_QUERY_EAS_FROM_LIST, this field marks the offset to an extended attribute, the retrieval of which caused an error. This field MUST contain the offset in bytes to the SMB_GEA entry in Trans2_Data.GetExtendedAttributesList that caused the error or zero (0x0000) if no error was encountered.

Trans2_Data:

The Trans2_Data block carries the structure of the information level specified by the request's Trans2_Parameters. InformationLevel field. Each information level's corresponding structure is specified in section 2.2.8.3.

Error Codes:

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS

(0x01)

ERRbadfile

(0x0002)

STATUS_NO_SUCH_FILE

(0xC000000F)

ENOENT

The named file was not found.

ERRDOS

(0x01)

ERRbadpath

(0x0003)

STATUS_OBJECT_PATH_SYNTAX_BAD

(0xC000003B)

ENOTDIR

The file path syntax is invalid.

ERRDOS

(0x01)

ERRnoaccess

(0x0005)

STATUS_ACCESS_DENIED

(0xC0000022)

EPERM

Access denied.

ERRDOS

(0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

ENOMEM

The server is out of resources.

ERRDOS

(0x01)

ERRbadlength

(0x0018)

STATUS_INFO_LENGTH_MISMATCH

(0xC0000004)

The client's MaxDataCount is too small to accommodate the results.

ERRDOS

(0x01)

ERRgeneral

(0x001F)

STATUS_UNSUCCESSFUL

(0xC0000001)

The size of the extended attribute list is not correct. Check the EaErrorOffset field for the address of SMB_GEA structure at which the error was detected.

ERRDOS

(0x01)

ERRunknownlevel

(0x007C)

STATUS_OS2_INVALID_LEVEL

(0x007C0001)

The InformationLevel supplied is invalid.

ERRDOS

(0x01)

ERRbadealist

(0x00FF)

STATUS_OS2_EA_LIST_INCONSISTENT

(0x00FF0001)

STATUS_EA_LIST_INCONSISTENT

(0x80000014)

Inconsistent extended attribute list.

ERRSRV

(0x02)

ERRerror

(0x0001)

STATUS_INVALID_SMB

(0x00010002)

Invalid SMB. Not enough parameter bytes were sent.

ERRSRV

(0x02)

ERRinvtid

(0x0005)

STATUS_SMB_BAD_TID

(0x00050002)

The TID is no longer valid.

ERRSRV

(0x02)

ERRbaduid

(0x005B)

STATUS_SMB_BAD_UID

(0x005B0002)

The UID supplied is not defined to the session.

ERRHRD

(0x03)

ERRnotready

(0x0015)

STATUS_NO_MEDIA_IN_DEVICE

(0x0xC0000013)

Share represents a removable device and there is no media present in the device.

ERRHRD

(0x03)

ERRdata

(0x0017)

STATUS_DATA_ERROR

(0xC000003E)

EIO

Disk I/O error.