Mail Archives: cygwin/2009/07/21/04:11:19
On Jul 20 20:13, Eric Blake wrote:
> SUCCESS! The following patch works for both read-only and writeable files.
> Doing the work on the original handle is not enough - it has to be flushed to
> disk so as not to be lost by later state changes. And doing the work on the
> duplicate is not enough, since based on the procmon output, it looks like MVFS
> caches information per handle, and with no reason to invalidate that cache, it
> will just overwrite the disk state on close. But the combination of working on
> the duplicate handle to flush the change to disk, followed by repeating the
> action on the original handle, is enough to force MVFS to realize that we meant
> business. And BOTH utimens and fchmod need this treatment (utimens alone fixed
> the writable file case, but not the read-only case).
How cute. I have reworked the patch slightly to encapsulate the MVFS
code somewhat more. I've checked it in. Please try if it still works
as advertised.
Thanks for the thorough testing,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -