Re: Rename atomicity

2001-03-22 Thread Derek R. Price
Mike Castle wrote: > On Tue, Mar 06, 2001 at 05:51:45PM +0100, Assar Westerlund wrote: > > > Derek: what did you want this for? CVS? And have you escaped on > > vacation yet? :-) > > Considering the RCS atomic rename() comment earlier, I was wondering what > the issue was as well. Yes on both

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

Re: Rename atomicity

2001-03-07 Thread Mike Castle
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 rename function in

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

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 op

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 on

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 pr

Re: Rename atomicity

2001-03-03 Thread Jim Meyering
"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 and try | and kill it real quick, but I don

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 va