knfsd - file locking?

David Woodhouse (David.Woodhouse@mvhi.com)
Tue, 03 Nov 1998 23:47:27 +0000


Is there a HOWTO anywhere on getting knfsd to provide file locking facilities?

My naïve attempts to set it up have resulted in both 'testlk' and 'nlmtest'
returning -ENOLCK and nlm_denied_nolocks respectively.

All I've done is compile and install the utilities from knfsd-981022, export
the filesystem, and try to mount it from a remote machine. I haven't installed
any of the multitude of kernel patches that are included.

Both client and server are 2.1.127-pre2 (Intel UP). When I use 'testlk', the
client complains:
nsm_mon_unmon: rpc failed, status=-13
lockd: failed to monitor 10.0.1.4

rpc.kstatd is running on the server. If I strace it while trying to make a
lock, I see that it does nothing - it sits in select() and doesn't even get
woken up.

CONFIG_NFS_FS=y
CONFIG_NFSD=m
CONFIG_NFSD_SUN=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/