diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-06 10:19:31 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-06 10:19:31 +0000 |
commit | b8eac1dee4591c199ed330c0108255782526cb0a (patch) | |
tree | 96bfa86ff7ed6e51a0eb687c2474b6cf94f36fa6 /winsup/cygwin/ntdll.h | |
parent | cffd8968e3b761caed180bc883944853afcf488c (diff) | |
download | cygnal-b8eac1dee4591c199ed330c0108255782526cb0a.tar.gz cygnal-b8eac1dee4591c199ed330c0108255782526cb0a.tar.bz2 cygnal-b8eac1dee4591c199ed330c0108255782526cb0a.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/ntdll.h')
-rw-r--r-- | winsup/cygwin/ntdll.h | 20 |
1 files changed, 17 insertions, 3 deletions
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; |