Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Apr 2004 14:53:24 +0200
From:      "herrier" <herrier@herrier.com>
To:        <freebsd-questions@FreeBSD.org>
Subject:   NFS File Locking & fcntl
Message-ID:  <003201c41a43$d18e2020$c8bbdc51@ely09>

next in thread | raw e-mail | index | archive | help
Hello,

First of all I a very happy using FreeBSD and I have a question =
regarding Locking of files over NFS.

Here is my configuration:

I have an apache server running with FreeBSD 4.8 Stable (server 1)
I have a NFS server where I put all my website files running  FreeBSD =
4.8 Stable. (server 2)

Both server are linked using Ethernet cards.

rpc.lockd is not activated: neither on server 1 nor on server 2

On server 1, I have concurrent CGI processes accessing files on server 2 =
using the locking api:

 fcntl(m_hdlFile,F_SETLKW, &objLock);

to lock part of the accessed files.

Question: Despite lockd is missing, does this invokation works well i.e =
do we have the expected locking behavior ?

Thanks and best regards.

Mr HERRIER.







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003201c41a43$d18e2020$c8bbdc51>