Samba and Linux OFD locks

Jeremy Allison jra at
Fri Feb 1 09:52:28 UTC 2019

On Thu, Jan 31, 2019 at 03:35:01PM +0100, Andreas Schneider wrote:
> attached is a patchset which does some cleanup and disables OFD locks. They 
> are obviously not working. The code might need some fixes.

It's the vfs_fruit module I now think.

> Looking at the strace we seem to open and lock the file twice!
> 3163  19:20:18.348328 fcntl(36</home/asn/workspace/projects/samba/st/nt4_dc/
> share/vfs_fruit_dir/locking_conflict.txt>, F_OFD_SETLK, {l_type=F_RDLCK, 
> l_whence=SEEK_SET, l_start=0, l_len=9223372036854775807}) = 0 <0.000004>

I'm pretty sure that's the vfs_fruit module, doing netatalk
compatibility stuff. I've looped Ralph in on the bug, let's
continue to discuss it there.

More information about the samba-technical mailing list