2.2.15 FILE_SYSTEM_INFO

The FILE_SYSTEM_INFO structure provides information about a file system. This structure is used for file system enumeration, file system operations, and notification of file system changes in the configuration database. For more information about the parameters, see [MSDN-STC].

 struct filesysteminfo {
   LdmObjectId id;
   LdmObjectId storageId;
   LONGLONG totalAllocationUnits;
   LONGLONG availableAllocationUnits;
   unsigned long allocationUnitSize;
   unsigned long fsflags;
   hyper lastKnownState;
   LdmObjectId taskId;
   long fsType;
   int cchLabel;
   [size_is(cchLabel)] wchar_t* label;
 };
 typedef struct filesysteminfo FILE_SYSTEM_INFO;

id: Specifies the OID for the file system.

storageId: Specifies the OID for the volume, partition, or logical drive associated with the file system.

totalAllocationUnits: Total number of file allocation units in the file system.

availableAllocationUnits: Number of available file allocation units in the file system.

allocationUnitSize: Size of a file allocation unit in bytes.

fsflags: Bitmap of file system flags. The value of this field is generated by combining zero or more of the applicable flags with a logical OR operation.

Value

Meaning

ENABLE_VOLUME_COMPRESSION

0x00000001

File system supports NT file system (NTFS) compression.

lastKnownState: File system's last known modification sequence number.

taskId: Specifies the task identifier of the associated user request. If no request is made, the value is 0. For more information about this task identifier, see section 2.2.17.

fsType: Type of the file system.

Value

Meaning

FSTYPE_UNKNOWN

0x00000000

File system type is unknown.

FSTYPE_NTFS

0x00000001

File system type is NTFS.

FSTYPE_FAT

0x00000002

File system type is file allocation table (FAT).

FSTYPE_FAT32

0x00000003

File system type is a FAT32 file system.

FSTYPE_CDFS

0x00000004

File system type is Compact Disc File System (CDFS).

FSTYPE_UDF

0x00000005

File system type is Universal Disk Format (UDF).

FSTYPE_OTHER

0x80000000

File system type is not listed.

cchLabel: Length of the label of the file system, in Unicode characters, including the terminating null character.

label: Null-terminated label of the file system. This is Unicode.