autoconf
[Top][All Lists]
Advanced

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

Re: Rename atomicity


From: Assar Westerlund
Subject: Re: Rename atomicity
Date: 04 Mar 2001 09:35:09 +0100
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6

Jim Meyering <address@hidden> writes:
> "Derek R. Price" <address@hidden> wrote:
> | Anyone ever tried to come up with a test for whether a rename across
> | directories on the same file system/partition is atomic?  The best I can
> | come up with is to rename a large file in a background process and try
> | and kill it real quick, but I don't think that would remain reliable
> | across a wide variety of platforms and hardware.
> 
> Do you know of a system on which such a use of rename is _not_ atomic?

On ancient Unices rename was done by link+unlink, but I doubt that any
of these old systems had a rename() system call or library function.
4BSD had `atomic' rename().

/assar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]