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

Re: FSFS propaganda

From: Branko ─îibej <brane_at_xbc.nu>
Date: 2004-04-30 21:48:09 CEST

Greg Hudson wrote:

>On Fri, 2004-04-30 at 14:55, Philip Martin wrote:
>
>
>>Another point to discuss would be a machine crash. When a process
>>writes a file it generally writes it to the OS cache, and the OS
>>itself is responsible for flushing the cache to disk. A process can
>>use fsync(2) to force a flush, but if it doesn't explicitly flush and
>>the machine crashes shortly after the commit completes then data may
>>be lost.
>>
>>
>
>This is a known loose end. I would like to add code to fsync the rev
>and prop files before returning from the commit, but APR does not have
>an interface to fsync(), nor could I find a Unix-specific interface to
>get the fd
>
apr_os_file_get in apr_portable.h

> so that I could put a call to fsync() inside #ifndef WIN32.
>I haven't thought of a way to circumvent this problem yet, but hopefully
>there's an option.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 30 21:50:03 2004

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.