On Tue, 23 Oct 2007 01:11:39 +0100, Jon Ribbens <[EMAIL PROTECTED]> wrote: >On Tue, Oct 23, 2007 at 12:29:35PM +1300, Greg Ewing wrote: >> [EMAIL PROTECTED] wrote: >> > Does fcntl.flock work over NFS and SMB and on Windows? >> >> I don't think file locking will ever work over NFS, since >> it's a stateless protocol by design, and locking would >> require maintaining state on the server. > >You can do file locking over NFS, that's one of the reasons people >use fcntl. It uses an RPC side channel separate to the main NFS >protocol.
You can do it. It just doesn't work. (You could say the same about regular read and write operations for many NFS implementations, though) Jean-Paul _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com