Ritesh Kapoor wrote:
Can you - DRH or someone else provide some more background information
on why locking dosen't work on NFS mounted file systems.

I just tried to find out what the locking problem was but couldn't find a web page discussing it in any detail. Lots of pages saying there *was* a problem with locking but none describing *what* the problem was.

Someone asks for a reliable NFS locking method in a short thread at
http://www.exim.org/pipermail/exim-users/Week-of-Mon-19990531/012756.html
The gist of that thread is that opening a file with O_EXCL isn't atomic. This problem (and a workaround) is mentioned in Linux's man page for open(2) and apparently this workaround is used by exim and procmail.

http://blogs.sun.com/erickustarz/entry/integrated_locking claims there's no problem with NFS locking and mentions the SQLite FAQ as making this claim. Apparently it's an "issue with early implementations rather than with the NFS protocol issue". Stevens said pretty much the same back in 1999 and he's probably about as authoritative as you'll get.

Martin

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to