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

Re: Windows XP "Access denied" svn_io_rename

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-10-27 23:20:00 CET

Philip Martin wrote:

>Branko ÄŒibej <brane@xbc.nu> writes:
>
>
>
>>Which suggests a simple solution, using the following (Windows-specific)
>>algorithm:
>>
>> 1. open temp (no sharing)
>> 2. write contents to temp
>>
>>
>
>Need some sort of flush of temp before deleting orig (if it was Unix).
>
>
:-) Read on...

>> 3. delete orig
>> 4. rename temp to orig
>> 5. close temp
>>
>>
>
>Suppose the close fails, are there any guarantees about the state of
>the working copy?
>
>
There's no guarantee that everyhing has been written to disk even if
close succeeds, since (at least on NTFS) actuall disk space commit
happens during cache flush. The only way to guarantee that everything is
on disk before the close is to flush the file buffers (or open the file
in write-through mode) -- and that's true of the current implementation,
too.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 27 23:23:04 2003

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.