diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-09-10 10:04:28 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-09-10 10:04:28 +0000 |
commit | f65c5a0a2b1728ce2b317b31b601574f1ef7f5b2 (patch) | |
tree | dce4aa1ba39f4f07fc4dd1d601708687e57798e0 /winsup/cygwin/ntdll.h | |
parent | 67a9307898f94346cbd4c83b6bae4f9611607818 (diff) | |
download | cygnal-f65c5a0a2b1728ce2b317b31b601574f1ef7f5b2.tar.gz cygnal-f65c5a0a2b1728ce2b317b31b601574f1ef7f5b2.tar.bz2 cygnal-f65c5a0a2b1728ce2b317b31b601574f1ef7f5b2.zip |
* mount.cc (class fs_info_cache): New class to cache filesystem
information.
(fs_info::update): Check FileFsVolumeInformation against filesystem
cache and use it, if filesystem is already available. Add filesystem
to cache, if not. Only request FileFsObjectIdInformation if
FILE_SUPPORTS_OBJECT_IDS is set in filesystem flags.
* ntdll.h (struct _FILE_FS_VOLUME_INFORMATION): Add pragma pack so the
structure size is matching the OS expectations. Add __dummy member
used in filesystem cache.
Diffstat (limited to 'winsup/cygwin/ntdll.h')
-rw-r--r-- | winsup/cygwin/ntdll.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h index 5c6eb53c2..f707cd28d 100644 --- a/winsup/cygwin/ntdll.h +++ b/winsup/cygwin/ntdll.h @@ -751,14 +751,17 @@ typedef struct _FILE_FS_ATTRIBUTE_INFORMATION WCHAR FileSystemName[1]; } FILE_FS_ATTRIBUTE_INFORMATION, *PFILE_FS_ATTRIBUTE_INFORMATION; +#pragma pack(push,4) typedef struct _FILE_FS_VOLUME_INFORMATION { LARGE_INTEGER VolumeCreationTime; ULONG VolumeSerialNumber; ULONG VolumeLabelLength; BOOLEAN SupportsObjects; + BOOLEAN __dummy; WCHAR VolumeLabel[1]; } FILE_FS_VOLUME_INFORMATION, *PFILE_FS_VOLUME_INFORMATION; +#pragma pack(pop) typedef struct _FILE_FS_SIZE_INFORMATION { |