X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 21 Jul 2009 10:10:47 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: MVFS results
Message-ID: <20090721081047.GV27613@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20090715T192219-408@post.gmane.org> <20090715204831.GA27613@calimero.vinschen.de> <loom.20090715T213245-387@post.gmane.org> <loom.20090717T230701-727@post.gmane.org> <20090718101123.GA8581@calimero.vinschen.de> <loom.20090720T142924-486@post.gmane.org> <20090720153636.GQ27613@calimero.vinschen.de> <loom.20090720T154622-451@post.gmane.org> <20090720174912.GT27613@calimero.vinschen.de> <loom.20090720T200138-134@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20090720T200138-134@post.gmane.org>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

