Skip to contentSkip to conversation

nfs file locking broken

DISCUSSION Robert W. Fuller 2 participants 3 messages Oct 14, 2006 – Oct 17, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 9 lines · Robert W. Fuller

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.

#2 lore raw
Quoted 19 lines · Robert W. Fuller
Quoted 9 lines · Robert W. Fuller

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?

Quoted 4 lines

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