Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2002 16:14:20 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        current@FreeBSD.org
Subject:   file locking problems with NFS
Message-ID:  <20020913231420.GA52963@xor.obsecurity.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
I'm getting weird problems on my 5.0 system trying to lock access to
files on an NFS volume (RedHat NFS server).  For example, here is what
happens when I try and vi a file on the NFS volume:

 58532 vi       CALL  flock(0x3,0x6)
 58532 vi       NAMI  "/var/run/lock"
 58532 vi       RET   flock -1 errno 4 Interrupted system call
 58532 vi       PSIG  SIGINT caught handler=0x804b340 mask=0x0 code=0x0
 58532 vi       CALL  sigreturn(0xbfbfef58)
 58532 vi       RET   sigreturn JUSTRETURN
 
Note flock is being called with LOCK_NB|LOCK_EX, i.e. non-blocking;
yet it blocks until I SIGINT it.

I am running rpc.lockd on the client, and it appears to also be
running on the server (I don't know if Redhat includes a working lock
manager or if it fakes it like ours used to).

Any ideas?

Kris

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9gnFKWry0BWjoQKURAgH4AJ9CL2BiZkgX7wpn/JaZ5Mazn74kBgCeKOVQ
suOgfMMEfnv23KH6t56RpE0=
=7fgQ
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020913231420.GA52963>