[lkml]   [2002]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectfile locking (fcntl) bug in 2.4.19
Hi, there is a bug on file locking (via fcntl) on
linux kernel 2.4.19 when locking files in a NFS

Try to mount a remote NFS server on a directory in a
machine running Linux 2.4.19 as follows:

mount -o nfsvers=3,intr <remote NFS server path> /mnt

Then run the attached program which demonstrates the

lockbug /mnt/xx

and it keeps showing the error

lock failed with error: No locks available

The file has not been locked so there must be locks
available. The error message is wrong.

Trying this on a file in a local drive does not show
the error.

The attached program basically forks a child and in
the child it tries to lock a file descriptor that was
opened in the parent.

Thanks for any help on working around this bug.

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes[unhandled content-type:application/octet-stream]
 \ /
  Last update: 2005-03-22 13:28    [W:0.051 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site