[Samba] strict locking and kernel oplocks in the smb.conf

Jeremy Allison jra at samba.org
Sat Oct 1 19:57:00 MDT 2011


On Sat, Oct 01, 2011 at 08:29:03AM +0200, Volker Lendecke wrote:
> On Fri, Sep 30, 2011 at 04:44:17PM -0700, Jeremy Allison wrote:
> > On Fri, Sep 30, 2011 at 04:39:18PM -0700, Philip Ong wrote:
> > > No other process is accessing it. So any idea why it would work fine without
> > > "strict locking = no" in previous kernels below 2.6.36.3?
> > 
> > When "strict locking = yes" we make fcntl() locking query calls
> > to make sure we're safe against existing POSIX locks.
> > 
> > The NFS locking code is probably just broken.
> 
> I think you're talking about "posix locking = yes/no".

Well yeah, but "strict locking" will map onto posix locks
underneath if "posix locking = yes", which it is by default.

So I still think it's the underlying POSIX locking on NFS
that's probably broken and causing this :-).

Jeremy.


More information about the samba mailing list