[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Safe File Update (atomic)



On Thu, 2010-12-30 at 19:29 +0100, Olaf van der Spek wrote:
> On Thu, Dec 30, 2010 at 7:15 PM, Shachar Shemesh <shachar@debian.org> wrote:
> > If my (extremely leaky) memory serves me right, Windows has it. It's called
> > "delete and then rename". It is not atomic (since when do Windows care about
> > not breaking stuff), but it does exactly that.
> >
> > If you delete a file and quickly (yes, this feature is time based) rename a
> > different file to the same name, the new file will receive all metadata
> > information the old file had (including owner, permissions etc.)
> >
> > Just thought I'd share this little nugget to show you how much worse
> > non-posix has it.
> 
> You're kidding me. Got any source to back this up?

http://support.microsoft.com/?kbid=172190

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: