2.2.4.57.2 Response

 SMB_Parameters
   {
   UCHAR WordCount;
   Words
     {
     USHORT TotalUnits;
     USHORT BlocksPerUnit;
     USHORT BlockSize;
     USHORT FreeUnits;
     USHORT Reserved;
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   }


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

SMB_Parameters

...

...

SMB_Data

...

SMB_Parameters (11 bytes):


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

WordCount

Words

...

...

WordCount (1 byte): This field MUST be 0x05.

Words (10 bytes):


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

TotalUnits

BlockPerUnit

BlockSize

FreeUnits

Reserved

TotalUnits (2 bytes): This field is a 16-bit unsigned value that represents the total count of logical allocation units available on the volume.

BlockPerUnit (2 bytes): This field is a 16-bit unsigned value that represents the number of blocks per allocation unit for the volume.

BlockSize (2 bytes): This field is a 16-bit unsigned value that represents the size in bytes of each allocation unit for the volume.

FreeUnits (2 bytes): This field is a 16-bit unsigned value that represents the total number of free allocation units available on the volume.

Reserved (2 bytes): This field is a 16-bit unsigned field and is reserved. The client SHOULD ignore this field.

SMB_Data (2 bytes):


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

ByteCount

ByteCount (2 bytes): This field MUST be 0x0000. No data is sent by this message.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS

(0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

ENOMEM

The server is out of resources.

ERRDOS

(0x01)

ERRnoaccess

(0x0005)

STATUS_ACCESS_DENIED

(0xC0000022)

Permissions denied request on the file system.

ERRSRV

(0x02)

ERRerror

(0x0001)

STATUS_INVALID_SMB

(0x00010002)

Unspecified internal server error.

ERRSRV

(0x02)

ERRaccess

(0x0004)

STATUS_NETWORK_ACCESS_DENIED

(0xC00000CA)

EACCES

Client does not have the required read permissions on the share.

ERRSRV

(0x02)

ERRinvtid

(0x0005)

STATUS_SMB_BAD_TID

(0x00050002)

ENOTDIR

The TID specified in the command was invalid OR The directory referenced by the TID has been removed from the system.

ERRSRV

(0x02)

ERRbaduid

(0x005B)

STATUS_SMB_BAD_UID

(0x005B0002)

The UID specified is not defined as a valid ID on this server session, or the user identified by the UID does not have sufficient privileges.

ERRHRD (0x03)

ERRnotready

(0x0015)

STATUS_NO_MEDIA_IN_DEVICE

(0xC0000013)

ENOENT

The file system has been removed from the system.

ERRHRD (0x03)

ERRdata

(0x0017)

EIO

Physical I/O error while reading disk resource.