Question: posix fcntl module

David Bolen db3l at fitlinxx.com
Thu Aug 30 00:29:11 EDT 2001


mats at laplaza.org (Mats Wichmann) writes:

> while 1:
>     print "don't do locks over NFS!"
> 
> 
> This position may POSSIBLY be able to be softened for NFS V4.

Fine grained file locking is horrid over NFS (even after you figure
out what custom independent communications path you want to use to
indicate locks), but sentinel file locking can still be done.  If you
use a directory rather than a file (e.g., your "lock" operation is to
try to make a directory), then generally your request is atomic all
the way through the NFS RPC and the underlying filesystem.  The major
con is trying to guarantee that you clean up since there's no live
handle, but it's still often better than nothing.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list