diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-05-21 10:23:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-05-21 10:23:19 +0000 |
commit | 380b8bac123f819fb24eccbea12c23b88a5d12b7 (patch) | |
tree | 5ed18999a0278e5a38fbcdd7cb52856037706eae /winsup/cygwin/path.cc | |
parent | 0d3f3658816a3759e608d6b944bb22ad194f389c (diff) | |
download | cygnal-380b8bac123f819fb24eccbea12c23b88a5d12b7.tar.gz cygnal-380b8bac123f819fb24eccbea12c23b88a5d12b7.tar.bz2 cygnal-380b8bac123f819fb24eccbea12c23b88a5d12b7.zip |
* fhandler_disk_file.cc (get_ino_by_handle): Rename pfai to fai.
(fhandler_base::fstat_by_handle): Drop fai_size and pfai in favor of
static struct fai_buf. Restructure.
(fhandler_base::fstat_by_name): Drop fvi_size and pfvi. Drop fdi_size
and pfdi in favor of static struct fdi_buf. Drop redundant test for
existance. Use FileDirectoryInformation class instead of
FileBothDirectoryInformation. Drop call to NtQueryVolumeInformationFile
in favor of using pc.fs_serial_number (). Fix FileId information given
to fstat_helper.
(fhandler_disk_file::fstatvfs): Drop fvi_size, pfvi, fai_size and pfai.
Drop getting FileFsVolumeInformation and FileFsAttributeInformation in
favor of using the related path_conv info.
(fhandler_disk_file::opendir): Fix comment.
(fhandler_disk_file::readdir): Ditto. Use FileDirectoryInformation
class instead of FileBothDirectoryInformation.
* path.cc (fs_info::update): Store MaximumComponentNameLength in new
member name_len.
* path.h (struct fs_info): Use ULONG rather than DWORD. Add member
name_len to store MaximumComponentNameLength. Add accessor methods.
(path_conv::fs_name_len): New method.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 92994d1b1..58f0afde7 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -457,6 +457,7 @@ fs_info::update (PUNICODE_STRING upath, HANDLE in_vol) return false; } flags (ffai_buf.ffai.FileSystemAttributes); + name_len (ffai_buf.ffai.MaximumComponentNameLength); /* Should be reevaluated for each new OS. Right now this mask is valid up to Vista. The important point here is to test only flags indicating capabilities and to ignore flags indicating a specific state of this |