delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/22/03:58:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 22 Feb 2005 09:57:58 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: snapshots are breaking shred
Message-ID: <20050222085758.GW18314@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <020920051745 DOT 590 DOT 420A4C2A000CF0230000024E22058864420A050E040D0C079D0A AT comcast DOT net> <20050209192812 DOT GU2597 AT cygbert DOT vinschen DOT de> <loom DOT 20050214T215335-693 AT post DOT gmane DOT org> <20050217121443 DOT GS2597 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20050217121443.GS2597@cygbert.vinschen.de>
User-Agent: Mutt/1.4.2i

On Feb 17 13:14, Corinna Vinschen wrote:
> On Feb 14 21:19, Eric Blake wrote:
> >   But fsync() is implemented with 
> > FlushFileBuffers, which requires write access to the handle it is about to 
> > flush, so it now fails with EACCES.
> > 
> > I don't know if it is better to patch open_fs() to additionally grant 
> > GENERIC_WRITE access when opening directories as O_RDONLY (since that is the 
> > only way to open a directory), or to patch fsync() to temporarily grant write 
> > access to a directory for the duration of the flush.

I've implemented a workaround which just ignores directories on fsync().


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019