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

Re: AW: AW: AW: Hard links on Win2k/XP

From: Julian Reschke <julian.reschke_at_gmx.de>
Date: 2004-07-23 13:40:38 CEST

John Peacock wrote:

> Marco Scholz wrote:
>
>>>
>>> It's not an unusual way. Please stop saying it is.
>>
>>
>>
>> As a compromise: Let's say it is not the way the majority of
>> applications
>> are working.
>
>
> You are still not getting it; the copy/delete/rename is probably _the_
> most common way applications deal with atomic file updates in a
> multithread safe fashion. Just because some user-space apps choose to
> update files in an unsafe manner doesn't mean that _they_ are correct.
> FWIW, my favorite Win32 Editor (MultiEdit) follows the
> copy/delete/rename scheme.

I agree that this is a common usage pattern; and probably the safest one
that is both portable and reliable.

That doesn't change the fact that it *does* have the drawback of
(depending on the filesystem type) destroying potentially useful metadata.

Apple used to have (in HFS) a call that would atomically swap two file's
contents (preserving the resource fork), but I think this is gone in
MacOs X.

> ...

Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 23 13:40:57 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.