NFS locking issues? (where to go for info?)

Matthew Dillon dillon at apollo.backplane.com
Thu Sep 14 14:07:16 PDT 2006


:One thing I used to do (before hearing I shouldn't) is:
:
:	if( symlink(pid,"file.lock")){
:		# I have a lock, readlink() gives others the PID.
:	}
:
:Are symlinks atomic across NFS?

    Yes, symlinks and open() with O_CREAT|O_EXCL are atomic across NFS.

						-Matt
 





More information about the Users mailing list