On Wed, Oct 08, 2003, Ralf S. Engelschall wrote:
> [...]
> If I run the above test program on our RedHat 9 box on a NFS filesystem
> mounted from a NetApp filer or a Solaris 8 box, it works fine (rv=0).
> Same on a local filesystem. But if I run it on a NFS filesystem mounted
> from a FreeBSD or Linux box, it fails with rv=-1. The reason is that the
> FreeBSD and Linux boxes do not support the NFS locking.
>
> So, what type is your NFS server? If it is FreeBSD or Linux, try
> a different one and repeat? I'm sure it then will work fine...
Just more hints I forgot: for a FreeBSD 4 NFS server you can explicitly
run rpc.lockd(8) and rpc.statd(8) for locking support (although it just
returns success to the client and does no real locking). for a FreeBSD 5
NFS server if you run the daemons it provides real locking.
For Linux you also can try to enable NFS server locking: The (older)
user space nfsd does not support locking AFAIK, while the kernel NFS
server (knfsd), coming with Linux 2.2 (and newer) supports AFAIK
locking.
But in all cases, keep in mind that for correct locking over NFS
you have to run the lockd on _BOTH_ client _AND_ server.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]