I mount a ShareSpace using NFS, but I can’t get
file locking to work.
On the client, the system call fcntl(,F_SETLK,)
returns ENOLCK (No locks available).
On the ShareSpace, I turned on all sorts of
debugging. (cd /proc/sys/sunrpc; echo 1 > nlm_debug,
etc.)
Now dmesg (on the ShareSpace) shows this every time
a lock request comes in:
nsm_mon_unmon: rpc failed, status=-13
lockd: cannot monitor 192.168.2.2
(The IP address is that of the client)
Googling for this message reveals the cause to be
that statd is not running on the server. Indeed, it
isn’t. But I can’t start it, because the ShareSpace
firmware does not contain /usr/sbin/rpc.statd.
(There are only /usr/sbin/rpc.nfsd and /usr/sbin/rpc.mountd.)
I downloaded the source code to the ShareSpace firmware
but didn’t get very far trying to cross-compile statd from the
sources.
Is my diagnosis correct, and, if so, would it be possible to
get an upgrade to the firmware that includes statd?