Re: Rename atomicity

2001-03-08 Thread Earnie Boyd
Mike Castle wrote: On Tue, Mar 06, 2001 at 05:51:45PM +0100, Assar Westerlund wrote: Mike Castle [EMAIL PROTECTED] writes: NT. (NT will happily rename() across disks, hardly an atomic operation). What rename() is that? It's not the one in their posix library I assume? Is there a

Re: Rename atomicity

2001-03-06 Thread Assar Westerlund
Mike Castle [EMAIL PROTECTED] writes: On Sun, Mar 04, 2001 at 06:32:25AM +0100, Jim Meyering wrote: Do you know of a system on which such a use of rename is _not_ atomic? NT. (NT will happily rename() across disks, hardly an atomic operation). What rename() is that? It's not the one in

Re: Rename atomicity

2001-03-06 Thread Thomas E. Dickey
On 6 Mar 2001, Assar Westerlund wrote: Mike Castle [EMAIL PROTECTED] writes: On Sun, Mar 04, 2001 at 06:32:25AM +0100, Jim Meyering wrote: Do you know of a system on which such a use of rename is _not_ atomic? NT. (NT will happily rename() across disks, hardly an atomic operation).

Re: Rename atomicity

2001-03-06 Thread Paul Eggert
From: Assar Westerlund [EMAIL PROTECTED] Date: 06 Mar 2001 17:51:45 +0100 If you're writing code that depends on this and that has to be able to run on systems where you cannot guarantee that rename isn't atomic, atomicity has to be accomplished in some other way. Agreed, but I've been

Re: Rename atomicity

2001-03-05 Thread Mike Castle
On Sun, Mar 04, 2001 at 06:32:25AM +0100, Jim Meyering wrote: Do you know of a system on which such a use of rename is _not_ atomic? NT. (NT will happily rename() across disks, hardly an atomic operation). Some earlier implementations of Linux. I believe some implementations of Solaris (for

Re: Rename atomicity

2001-03-04 Thread Assar Westerlund
Jim Meyering [EMAIL PROTECTED] writes: "Derek R. Price" [EMAIL PROTECTED] 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

Rename atomicity

2001-03-02 Thread Derek R. Price
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