Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!uw-beaver!milton!ogicse!intelhf!ichips!iwarp.intel.com!gargoyle!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.questions Subject: Re: removing hard linked directories (sysv lacks atomic rename) Message-ID: <1991Mar23.034804.26099@chinet.chi.il.us> Date: 23 Mar 91 03:48:04 GMT References: <1991Mar21.100031.12027@athena.mit.edu> <8413@mentor.cc.purdue.edu> <1991Mar21.200251.2272@athena.mit.edu> Organization: Chinet - Chicago Public Access UNIX Lines: 18 In article <1991Mar21.200251.2272@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: > A kernel without an atomic rename operation (or, at least, a rename >operation that tries to be atomic, although it might fail to be completely >atomic in the case of some network filesystems) is, in my opinion, >brain-damaged. Which is what I said in my original message. Thank you for >spelling out the particular form the brain-damage takes in this case :-). Welcome to the wonderful world of SysV, where you can't safely do something as simple as maintain your configuration files in multi-user mode. The fact that there is a point where both links appear is the least of the problems. Since link() will fail if the destination already exists, you must unlink the existing copy first, leaving an indeterminate amount of time where the filename does not exist at all until you get around to linking the new copy under the old name. Les Mikesell les@chinet.chi.il.us