2.5.4 FileFsFullSizeInformation

This information class is used to query sector size information for a file system volume.

A FILE_FS_FULL_SIZE_INFORMATION data element, defined as follows, is returned by the server.


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

TotalAllocationUnits

...

CallerAvailableAllocationUnits

...

ActualAvailableAllocationUnits

...

SectorsPerAllocationUnit

BytesPerSector

TotalAllocationUnits (8 bytes):  A 64-bit signed integer that contains the total number of allocation units on the volume that are available to the user associated with the calling thread. The value of this field MUST be greater than or equal to 0.<159>

CallerAvailableAllocationUnits (8 bytes):  A 64-bit signed integer that contains the total number of free allocation units on the volume that are available to the user associated with the calling thread. The value of this field MUST be greater than or equal to 0.<160>

ActualAvailableAllocationUnits (8 bytes):  A 64-bit signed integer that contains the total number of free allocation units on the volume. The value of this field MUST be greater than or equal to 0.

SectorsPerAllocationUnit (4 bytes):  A 32-bit unsigned integer that contains the number of sectors in each allocation unit.

BytesPerSector (4 bytes):  A 32-bit unsigned integer that contains the number of bytes in each sector.

This operation returns a status code as specified in section 2.2. Upon success, the status code returned by the function that processes this file system information class is STATUS_SUCCESS. The most common error codes are listed in the following table.

Error code

Meaning

STATUS_INFO_LENGTH_MISMATCH

0xC0000004

The specified information record length does not match the length that is required for the specified information class.