_FILE_FS_ATTRIBUTE_INFORMATION structure

The FILE_FS_ATTRIBUTE_INFORMATION structure is used to query attribute information for a file system.

Syntax

typedef struct _FILE_FS_ATTRIBUTE_INFORMATION {
  ULONG FileSystemAttributes;
  LONG  MaximumComponentNameLength;
  ULONG FileSystemNameLength;
  WCHAR FileSystemName[1];
} FILE_FS_ATTRIBUTE_INFORMATION, *PFILE_FS_ATTRIBUTE_INFORMATION;

Members

FileSystemAttributes

Bitmask of flags specifying attributes of the specified file system, as a compatible combination of the following flags.

Value Meaning
FILE_CASE_PRESERVED_NAMES The file system preserves the case of file names when it places a name on disk.
FILE_CASE_SENSITIVE_SEARCH The file system supports case-sensitive file names.
FILE_FILE_COMPRESSION The file system supports file-based compression. This flag is incompatible with the FILE_VOLUME_IS_COMPRESSED flag.
FILE_NAMED_STREAMS The file system supports named streams.
FILE_PERSISTENT_ACLS The file system preserves and enforces access control lists (ACL).
FILE_READ_ONLY_VOLUME Microsoft Windows XP and later: The specified volume is read-only.
FILE_SUPPORTS_ENCRYPTION The file system supports the Encrypted File System (EFS).
FILE_SUPPORTS_OBJECT_IDS The file system supports object identifiers.
FILE_SUPPORTS_REMOTE_STORAGE The file system supports remote storage.
FILE_SUPPORTS_REPARSE_POINTS The file system supports reparse points.
FILE_SUPPORTS_SPARSE_FILES The file system supports sparse files.
FILE_UNICODE_ON_DISK The file system supports Unicode in file names.
FILE_VOLUME_IS_COMPRESSED The specified volume is a compressed volume. This flag is incompatible with the FILE_FILE_COMPRESSION flag.
FILE_VOLUME_QUOTAS The file system supports per-user quotas.

MaximumComponentNameLength

Maximum file name component length, in bytes, supported by the specified file system. A file name component is that portion of a file name between backslashes.

FileSystemNameLength

Length, in bytes, of the file system name.

FileSystemName

File system name.

Remarks

This information can be queried in either of the following ways:

No specific access rights are required to query this information. Thus this information is available as long as the volume is accessed through an open handle to the volume itself, or to a file or directory on the volume.

The size of the buffer passed in the FileInformation parameter to FltQueryVolumeInformation or ZwQueryVolumeInformationFile must be at least sizeof(FILE_FS_ATTRIBUTE_INFORMATION).

This structure must be aligned on a LONG (4-byte) boundary.

Requirements

   
Header ntifs.h (include Ntifs.h, Fltkernel.h)

See Also

ACL

FltQueryVolumeInformation

IRP_MJ_QUERY_VOLUME_INFORMATION

ZwQueryVolumeInformationFile