[Linux-cluster] GFS bug with fcntl/flock ?

Robert Hurst rhurst at bidmc.harvard.edu
Wed Oct 11 13:09:26 UTC 2006


I am running InterSystems Caché 5.0.19 for AMD64, and an strace output
from their utility reveals a problem with fcntl/flock on the GFS
filesystem (mount -t gfs /dev/VGSHARE/lvol0 /usr/local):


        open("/usr/local/etc/cachesys/cache.reg", O_RDONLY|O_NONBLOCK) =
        3
        fcntl(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0,
        len=0}) = -1 ENOLCK (No locks available)


When I put their files on an ordinary ext3 filesystem, all works fine:


        open("/usr/local/etc/cachesys/cache.reg", O_RDONLY|O_NONBLOCK) =
        3
        fcntl(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0,
        len=0}) = 0


The man page on fcntl states that when flock is setup with
whence=SEEK_SET, start=0, and len=0, the lock will occur on the entire
file... so locking zero bytes in this manner is acceptable.  Help?


Robert Hurst, Sr. Caché Administrator
Beth Israel Deaconess Medical Center
1135 Tremont Street, REN-7
Boston, Massachusetts   02120-2140
617-754-8754 ∙ Fax: 617-754-8730 ∙ Cell: 401-787-3154
Any technology distinguishable from magic is insufficiently advanced.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20061011/9c66f8ab/attachment.htm>


More information about the Linux-cluster mailing list