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

Re: Support for filesystem snapshots (?)

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 3 Aug 2010 15:12:19 +0200

On Tue, Aug 03, 2010 at 02:36:41PM +0200, Vincent Lefevre wrote:
> On 2010-08-03 12:56:28 +0200, Stefan Sperling wrote:
> > On Tue, Aug 03, 2010 at 10:33:28AM +0000, Florian Weimer wrote:
> > > Kernel-level buffers are taken into account. Application buffers
> > > aren't, the application has to take care of that. But if the
> > > Subversion fails to do that, it cannot recover from file system
> > > crashes, either, which is arguably a bug in Subversion.
> >
> > Subversion carefully flushes file buffers after writing revision files.
> What do you mean by "flushes file buffers"? A call to fflush()?
> Or a call to sync() or fsync() too?
> Assuming the filesystem is on a remote machine (say, NFS), the
> necessary needs to be done on the client side: the NFS server
> cannot take into account the kernel-level buffers of the client.

Subversion calls apr_file_flush(). What that does on which platform
depends on APR (and could theoretically change over time).

I'm not sure what else you suggest we should do to avoid the (from
my point of view non-existent) bug you were talking about.

Received on 2010-08-03 15:13:07 CEST

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

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