[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Atomicity under Windows

From: Stephen C. Tweedie <sct_at_redhat.com>
Date: 2002-06-09 23:39:23 CEST

Hi,

On Sun, Jun 09, 2002 at 04:32:03PM -0400, Greg Hudson wrote:
 
> Failure atomicity looks harder. There's no APR interface to the
> FILE_FLAG_WRITE_THROUGH create flag; even if this were corrected (and
> I'm not sure if it can be, since there's no Unix analog)

O_SYNC is a Unix write-through facility. It is used at open time, not
create time, but it still gives you write-through.

However, that's usually not what you want --- you often care more
about the file contents on close than on every single chunk you write
to the file, so fsync() is more appropriate.

--Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 9 23:40:57 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.