This is the mail archive of the cygwin-developers mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
In your original patch on the cygwin-patches ML you implemented the fs_info caching using the pathname. I still don't think this is correct for the reasons given in another mail. However, maybe we can use it nevertheless like this:
- If we don't find a path prefix matching the incoming path, call symlink_info::check.
- Otherwise we have a cached fs_info for the path prefix:
- If the path is NFS, call check. - Otherwise, if the calling function doesn't need st_nlink or st_mode, call xcheck. - Otherwise, call check.
- In check, test for samba and use GENERIC_WRITE - otherwise use FILE_READ_ATTRIBUTES etc.
- In check and xcheck, always fetch fs_info using the current method. Write back to path-based cache so we use the info the next time around.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |