Record locking through NFS.

Enrique Bernal (
Thu, 2 Sep 1999 11:08:05 +0200

Hello, all.

I have a program that uses record locking - fcntl(filedes, F_SETLK, ...) -
in a file from a NFS server. That worked well in SuSE Linux 6.1 (Kernel

Recently I have installed SuSE Linux 6.2 (Kernel 2.2.10) in both boxes (NFS
server and NFS
client), and I think I have configured them correctly, but my program
doesnīt manage to lock records in the serverīs file, as did in 6.1.

I have included the clientīs IP in serverīs /etc/exports (rw), both
/etc/hosts files contain both IP addresses, I have put
in both /etc/rc.config, and ran SuSEconfig (and reboot). I mount the server
in the client with "mount /mnt", and got no errors. Even
I included the option "-o lock" in mount but with the same results: when my
program tries to lock the serverīs file, it just get an error "file

Have I to configure something more in order to lock files in the NFS
Have somebody any ideas about this?

NOTE: rpcinfo -p in both sides don't shows "nlockmgr" as it did with kernel

Thank you in advance,


To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to