[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
- Rename atomicity, Derek R. Price, 2001/03/02
- Re: Rename atomicity, Jim Meyering, 2001/03/04
- Re: Rename atomicity,
Assar Westerlund <=
- Re: Rename atomicity, Mike Castle, 2001/03/05
- Re: Rename atomicity, Assar Westerlund, 2001/03/06
- Re: Rename atomicity, Thomas E. Dickey, 2001/03/06
- Re: Rename atomicity, Paul Eggert, 2001/03/06
- Re: Rename atomicity, Mike Castle, 2001/03/07
- Re: Rename atomicity, Earnie Boyd, 2001/03/08
- Re: Rename atomicity, Derek R. Price, 2001/03/22