Locks for exclusive access to resources

Adam R de Boor deboor at buddy.Berkeley.EDU
Wed Jun 21 15:32:31 AEST 1989


unlink isn't an atomic operation under NFS. You'd think it would be (you'd
think file creation would be atomic too...), but it isn't. I've had cases where
unlinks of the same file on two systems both succeeded, though *one* should
have returned ENOENT. I eventually went with an election algorithm (slightly
different problem -- the locking was to determine which server was to be
the master...)

a



More information about the Comp.unix.wizards mailing list