2.1.130 and nfs locking

janl@math.uio.no
Sun, 29 Nov 1998 12:19:42 +0100


Hi,

Can't use 2.1.130 to read my e-mail. Some locking problem. The mail is
spooled on a DEC-Unix 4.0D machine.

Running redhat 5.2 with nmh. To read mail run 'inc':

inc: unable to lock and fopen /var/spool/mail/janl

strace shows this:
open("/var/spool/mail/janl", O_RDWR|O_NONBLOCK) = 3
fcntl(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 ENOLCK (No locks available)

dmesg shows this:
nsm_mon_unmon: rpc failed, status=-13
lockd: failed to monitor 129.240.222.66

/var/spool/mail is a symlink -> /mn/gilgamesj/mail which is
automounted (autofs) like this:
gilgamesj:/var/spool/mail on /mn/gilgamesj/mail type nfs
(rw,nosuid,nodev,hard,intr,rsize=8192,wsize=8192,addr=129.240.222.66)

Works under 2.0.36 but of course it does not attempt locking over nfs.

I have tried this on both a Dual PII macine and a UP Pentium, no
difference. Is this enough information? I can get tcpdumps and so
forth if needed.

Of course this could be an application problem. mail(1) will read the
spool nicely. But then it does

flock(4, LOCK_EX) = 0

locking, not fcntl locking.

$ rpm -qf /bin/mail /usr/bin/inc
mailx-8.1.1-5
nmh-0.27-1

-
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/