Re: NFS file locking broken (take 2)

H. J. Lu (hjl@freya.yggdrasil.com)
Sun, 23 Aug 1998 02:20:10 -0700 (PDT)


>
>
>
> On Sun, 23 Aug 1998, Steven N. Hirsch wrote:
>
> > On Sat, 22 Aug 1998, H. J. Lu wrote:
> >
> > > Which one are you using? The latest one is knfsd-980820. NFS lock
> > > works for me. BTW, you did apply my kernel patch, didn't you.
> >
> > Yes, we have E-Mail time-warp in operation. I built 2.1.117 with your
> > patches from knfsd-980820, and the client-side locking now seems to work
> > as it should. However, processes running on the _server_ do not see the
> > locks.
> >
> > - Is this expected?
> > - Can it be fixed?
>
> Well, it's not completely fixed. Locking between two processes on the
> same client works, but processes on other _clients_ also fail to see them
> :-(.
>

It works for me very well. You must have a strange setup.

> I notice that nothing is appearing in the /var/lib/nfs/sm directories now.
> Previously, there was some information which tracked clients with interest
> in current locks.
>

On my server:

# ls -l /var/lib/nfs/sm
total 0
-rw------- 1 root root 0 Aug 22 11:36 client 1 IP
-rw------- 1 root root 0 Aug 22 11:36 client 2 IP

On my client 1:

# ls -l /var/lib/nfs/sm
total 0
-rw------- 1 root root 0 Aug 23 08:01 server IP

On my client 2:

# ls -l /var/lib/nfs/sm
total 0
-rw------- 1 root root 0 Aug 23 08:01 server IP

BTW, there is no lock at this time.

H.J.

-
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.altern.org/andrebalsa/doc/lkml-faq.html