diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-06-21 13:28:12 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-21 13:28:12 +0200 |
commit | 36d4eb12b5f23093ae1285d0725f4930235a07e5 (patch) | |
tree | 65848f5ed52d38e1fafc2654f6752afa8e3f22b3 /winsup/cygwin/fhandler_disk_file.cc | |
parent | f91865c8cf85c4c4309c64ded42c847a64872b1e (diff) | |
download | cygnal-36d4eb12b5f23093ae1285d0725f4930235a07e5.tar.gz cygnal-36d4eb12b5f23093ae1285d0725f4930235a07e5.tar.bz2 cygnal-36d4eb12b5f23093ae1285d0725f4930235a07e5.zip |
Use new path_conv_handle functions to access file info
This avoids having to call nfs_fetch_fattr3/file_get_fai depending
on FS type as well as having to extract the info FS dependent.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 2cf738f6d..3da519129 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -254,7 +254,7 @@ fhandler_base::fstat_by_nfs_ea (struct stat *buf) NFS client. */ if (get_access () & GENERIC_WRITE) FlushFileBuffers (get_io_handle ()); - nfs_fetch_fattr3 (get_io_handle (), nfs_attr); + pc.get_finfo (get_io_handle ()); } buf->st_dev = nfs_attr->fsid; buf->st_ino = nfs_attr->fileid; @@ -326,7 +326,7 @@ fhandler_base::fstat_by_handle (struct stat *buf) on the information stored in pc.fai. So we overwrite them here. */ if (get_io_handle ()) { - status = file_get_fai (h, pc.fai ()); + status = pc.get_finfo (h); if (!NT_SUCCESS (status)) { debug_printf ("%y = NtQueryInformationFile(%S, FileAllInformation)", |