Cygwin: ntdll.h: add missing NtQueryVolumeInformationFile definitions
In preparation of using the FileFsSectorSizeInformation info class, add a couple of missing definitions. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
f816787c57
commit
61f49ada90
|
@ -59,6 +59,13 @@ extern GUID __cygwin_socket_guid;
|
||||||
#define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
|
#define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
|
||||||
#define FILE_DEVICE_SECURE_OPEN 0x00000100
|
#define FILE_DEVICE_SECURE_OPEN 0x00000100
|
||||||
|
|
||||||
|
/* Sector Size Information Flags */
|
||||||
|
#define SSINFO_FLAGS_ALIGNED_DEVICE 0x00000001
|
||||||
|
#define SSINFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE 0x00000002
|
||||||
|
#define SSINFO_FLAGS_NO_SEEK_PENALTY 0x00000004
|
||||||
|
#define SSINFO_FLAGS_TRIM_ENABLED 0x00000008
|
||||||
|
#define SSINFO_FLAGS_BYTE_ADDRESSABLE 0x00000010
|
||||||
|
|
||||||
/* Lock type in NtLockVirtualMemory/NtUnlockVirtualMemory call. */
|
/* Lock type in NtLockVirtualMemory/NtUnlockVirtualMemory call. */
|
||||||
#define MAP_PROCESS 1
|
#define MAP_PROCESS 1
|
||||||
#define MAP_SYSTEM 2
|
#define MAP_SYSTEM 2
|
||||||
|
@ -1205,6 +1212,21 @@ typedef struct _FILE_FS_OBJECTID_INFORMATION
|
||||||
UCHAR ExtendedInfo[48];
|
UCHAR ExtendedInfo[48];
|
||||||
} FILE_FS_OBJECTID_INFORMATION, *PFILE_FS_OBJECTID_INFORMATION;
|
} FILE_FS_OBJECTID_INFORMATION, *PFILE_FS_OBJECTID_INFORMATION;
|
||||||
|
|
||||||
|
typedef struct _FILE_FS_SECTOR_SIZE_INFORMATION
|
||||||
|
{
|
||||||
|
ULONG LogicalBytesPerSector;
|
||||||
|
ULONG PhysicalBytesPerSectorForAtomicity;
|
||||||
|
ULONG PhysicalBytesPerSectorForPerformance;
|
||||||
|
ULONG FileSystemEffectivePhysicalBytesPerSectorForAtomicity;
|
||||||
|
ULONG Flags;
|
||||||
|
ULONG ByteOffsetForSectorAlignment;
|
||||||
|
ULONG ByteOffsetForPartitionAlignment;
|
||||||
|
} FILE_FS_SECTOR_SIZE_INFORMATION, *PFILE_FS_SECTOR_SIZE_INFORMATION;
|
||||||
|
|
||||||
|
typedef struct _FILE_FS_VOLUME_FLAGS_INFORMATION {
|
||||||
|
ULONG Flags;
|
||||||
|
} FILE_FS_VOLUME_FLAGS_INFORMATION, *PFILE_FS_VOLUME_FLAGS_INFORMATION;
|
||||||
|
|
||||||
typedef enum _FSINFOCLASS {
|
typedef enum _FSINFOCLASS {
|
||||||
FileFsVolumeInformation = 1,
|
FileFsVolumeInformation = 1,
|
||||||
FileFsLabelInformation,
|
FileFsLabelInformation,
|
||||||
|
@ -1215,6 +1237,11 @@ typedef enum _FSINFOCLASS {
|
||||||
FileFsFullSizeInformation,
|
FileFsFullSizeInformation,
|
||||||
FileFsObjectIdInformation,
|
FileFsObjectIdInformation,
|
||||||
FileFsDriverPathInformation,
|
FileFsDriverPathInformation,
|
||||||
|
FileFsVolumeFlagsInformation,
|
||||||
|
FileFsSectorSizeInformation,
|
||||||
|
FileFsDataCopyInformation,
|
||||||
|
FileFsMetadataSizeInformation,
|
||||||
|
FileFsFullSizeInformationEx,
|
||||||
FileFsMaximumInformation
|
FileFsMaximumInformation
|
||||||
} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
|
} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue