From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 033763848357; Thu, 30 Nov 2023 21:40:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 033763848357 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701380405; bh=VPnuOl2qCIWlLWrCxO/IVxJDOeHkICuNDw8Sg1ne+vk=; h=From:To:Subject:Date:From; b=Xzg+Y3AzfTxsnXjWsUc0RtgKZ0TGDLy8kEtatYarQ0R0hTGy1LHN5vpbIZtXP5fXa EImrI7MwKYDNl0zj9mmsM9H4xSTVMUOH4yD8nbRdxGCK57pUBd1P1hjiS8EzmG2BbA BPehANvAnka4j05kDEGKVG4rtGasBDDnHuZSDV34= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: ntdll.h: add missing NtQueryVolumeInformationFile definitions X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: f816787c57b340da0964d6d4209ad18cd8795e14 X-Git-Newrev: 61f49ada90b2541925d56183e91e7d57aad1547a Message-Id: <20231130214005.033763848357@sourceware.org> Date: Thu, 30 Nov 2023 21:40:05 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D61f49ada90b= 2541925d56183e91e7d57aad1547a commit 61f49ada90b2541925d56183e91e7d57aad1547a Author: Corinna Vinschen AuthorDate: Thu Nov 30 22:12:13 2023 +0100 Commit: Corinna Vinschen CommitDate: Thu Nov 30 22:37:35 2023 +0100 Cygwin: ntdll.h: add missing NtQueryVolumeInformationFile definitions =20 In preparation of using the FileFsSectorSizeInformation info class, add a couple of missing definitions. =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/local_includes/ntdll.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/winsup/cygwin/local_includes/ntdll.h b/winsup/cygwin/local_inc= ludes/ntdll.h index 484523bbbc48..9605784e32a8 100644 --- a/winsup/cygwin/local_includes/ntdll.h +++ b/winsup/cygwin/local_includes/ntdll.h @@ -59,6 +59,13 @@ extern GUID __cygwin_socket_guid; #define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080 #define FILE_DEVICE_SECURE_OPEN 0x00000100 =20 +/* 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. */ #define MAP_PROCESS 1 #define MAP_SYSTEM 2 @@ -1205,6 +1212,21 @@ typedef struct _FILE_FS_OBJECTID_INFORMATION UCHAR ExtendedInfo[48]; } FILE_FS_OBJECTID_INFORMATION, *PFILE_FS_OBJECTID_INFORMATION; =20 +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 { FileFsVolumeInformation =3D 1, FileFsLabelInformation, @@ -1215,6 +1237,11 @@ typedef enum _FSINFOCLASS { FileFsFullSizeInformation, FileFsObjectIdInformation, FileFsDriverPathInformation, + FileFsVolumeFlagsInformation, + FileFsSectorSizeInformation, + FileFsDataCopyInformation, + FileFsMetadataSizeInformation, + FileFsFullSizeInformationEx, FileFsMaximumInformation } FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;