This is the mail archive of the cygwin 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]

Re: MVFS results


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]