2006-10-14 20:17:35

by Robert W. Fuller

[permalink] [raw]
Subject: nfs file locking broken

I tried to upgrade from 2.6.16.27 to 2.6.17.13. I have also tried
2.6.18.1. I discovered NFS file locking no longer works between a Linux
client and an OpenBSD server. For example, gtk-gnutella gets the
following error:

06-10-14 15:50:19 (WARNING): fcntl(8, F_SETLK, ...) failed for
"/home/edison/.gtk-gnutella/gtk-gnutella.pid": Permission denied

gpg hangs waiting for a lock for ~/.gnupg/random_seed


2006-10-17 18:36:40

by Robert W. Fuller

[permalink] [raw]
Subject: Re: nfs file locking broken

Robert W. Fuller wrote:
> I tried to upgrade from 2.6.16.27 to 2.6.17.13. I have also tried
> 2.6.18.1. I discovered NFS file locking no longer works between a Linux
> client and an OpenBSD server. For example, gtk-gnutella gets the
> following error:
>
> 06-10-14 15:50:19 (WARNING): fcntl(8, F_SETLK, ...) failed for
> "/home/edison/.gtk-gnutella/gtk-gnutella.pid": Permission denied
>
> gpg hangs waiting for a lock for ~/.gnupg/random_seed

Maybe the thing to do is to Cc: the NFS guy on this? Anybody else have
any suggestions?

Is there a known fundamental change in the Linux NFS client that would
break file locking between a Linux NFS client and an OpenBSD-3.8 NFS
server? Is OpenBSD-3.8 somehow broken with respect to new behavior in
the Linux NFS client?

This is very reproducible. File locking works with 2.6.16.27. Sometime
thereafter it ceased to work. There are no configuration changes to
/etc or anything like that.... For me, it's a simple matter of choosing
a working kernel from the GRUB menu or a broken kernel.

2006-10-17 18:41:17

by Trond Myklebust

[permalink] [raw]
Subject: Re: nfs file locking broken

On Tue, 2006-10-17 at 14:30 -0400, Robert W. Fuller wrote:
> Robert W. Fuller wrote:
> > I tried to upgrade from 2.6.16.27 to 2.6.17.13. I have also tried
> > 2.6.18.1. I discovered NFS file locking no longer works between a Linux
> > client and an OpenBSD server. For example, gtk-gnutella gets the
> > following error:
> >
> > 06-10-14 15:50:19 (WARNING): fcntl(8, F_SETLK, ...) failed for
> > "/home/edison/.gtk-gnutella/gtk-gnutella.pid": Permission denied
> >
> > gpg hangs waiting for a lock for ~/.gnupg/random_seed
>
> Maybe the thing to do is to Cc: the NFS guy on this? Anybody else have
> any suggestions?
>
> Is there a known fundamental change in the Linux NFS client that would
> break file locking between a Linux NFS client and an OpenBSD-3.8 NFS
> server? Is OpenBSD-3.8 somehow broken with respect to new behavior in
> the Linux NFS client?
>
> This is very reproducible. File locking works with 2.6.16.27. Sometime
> thereafter it ceased to work. There are no configuration changes to
> /etc or anything like that.... For me, it's a simple matter of choosing
> a working kernel from the GRUB menu or a broken kernel.

File locking works fine for me, both against Linux boxes and others. I
don't have any OpenBSD servers to test, though.

Have you tried using something like ethereal/wireshark in order to sniff
the wire?

Cheers,
Trond