diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-09-21 20:32:22 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-09-21 20:32:22 +0400 |
commit | 4c9d01fdad2acbfb5d0594dbe5fb6f0f402cff72 (patch) | |
tree | a8b522f688140bb24462bc8e0c8790aba434b7c5 /winsup/cygwin/mount.cc | |
parent | 7ba1698ed99abca171d2beb9091168e20cdd8b34 (diff) |
* mount.h (class fs_info): Add has_buggy_reopen flag and accessor
methods.
* mount.cc (fs_info::update): Set has_buggy_reopen flag for NWFS.
Add comment.
* path.h (path_conv::get_object_attr) Make inline method.
(path_conv::init_reopen_attr): New inline method.
* path.cc (path_conv::get_object_attr): Remove.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Use
path_conv::init_reopen_attr method to initialize OBJECT_ATTRIBUTE for
reopening file.
(fhandler_disk_file::fchmod): Ditto.
(fhandler_base::utimens_fs): Ditto.
(fhandler_disk_file::rewinddir): Ditto.
* syscalls.cc (unlink_nt): Ditto.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r-- | winsup/cygwin/mount.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 6c58849b8..74db057dd 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -389,6 +389,10 @@ fs_info::update (PUNICODE_STRING upath, HANDLE in_vol) clients. We subsume CIFS into this class of filesystems right away since at least some of them are not capable either. */ has_dos_filenames_only (is_netapp () || is_nwfs () || is_cifs ()); + /* NWFS does not grok re-opening a file by handle. It only + supports this if the filename is non-null and the handle is + the handle to a directory. */ + has_buggy_reopen (is_nwfs ()); } } if (!got_fs () |