From b8eac1dee4591c199ed330c0108255782526cb0a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 6 Apr 2004 10:19:31 +0000 Subject: * fhandler_disk_file.cc (fhandler_base::fstat_helper): Request compressed size only if the matching attributes are set. Use NtQueryInformationFile instead of GetCompressedFileSize. (fhandler_base::fstat_by_handle): Remove NT 3.5 cruft since local.dwVolumeSerialNumber isn't used subsequently. * ntdll.h: Add typedefs for FILE_COMPRESSION_INFORMATION and FILE_INFORMATION_CLASS. --- winsup/cygwin/ntdll.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/ntdll.h') diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h index 21e63932e..33aa1296e 100644 --- a/winsup/cygwin/ntdll.h +++ b/winsup/cygwin/ntdll.h @@ -357,11 +357,25 @@ typedef struct _FILE_NAME_INFORMATION WCHAR FileName[MAX_PATH + 100]; } FILE_NAME_INFORMATION; +typedef struct _FILE_COMPRESSION_INFORMATION +{ + LARGE_INTEGER CompressedSize; + USHORT CompressionFormat; + UCHAR CompressionUnitShift; + UCHAR Unknown; + UCHAR ClusterSizeShift; +} FILE_COMPRESSION_INFORMATION, *PFILE_COMPRESSION_INFORMATION; + +typedef enum _FILE_INFORMATION_CLASS +{ + FileCompressionInformation = 28 +} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS; + typedef enum _OBJECT_INFORMATION_CLASS { - ObjectBasicInformation = 0, - ObjectNameInformation = 1, - ObjectHandleInformation = 4 + ObjectBasicInformation = 0, + ObjectNameInformation = 1, + ObjectHandleInformation = 4 // and many more } OBJECT_INFORMATION_CLASS; -- cgit v1.2.3