OpLocks and file sizes.

J. Bruce Fields bfields at fieldses.org
Fri Mar 30 16:02:59 MDT 2012

On Fri, Mar 30, 2012 at 12:29:31PM +0200, Christian Ambach wrote:
> On 03/27/2012 09:54 PM, Christopher R. Hertel wrote:
> >That's also true for OpLock support in general.  It would be nice, for us,
> >if the Linux kernel would only break leases for the same reasons that
> >Windows does, but if there are additional reasons then the worst that will
> >happen is that leases will be broken...so OpLocks will be broken.  That's
> >not really too bad.
> I recently gave Kernel 3.2 a chance to see if the fcntl lease
> semantics have improved after Bruce's recent changes.
> But especially downgrading still does not work as Samba would
> require it: to downgrade from write lease to read lease requires
> that the fd is open in R/O mode. Samba however might have the fd
> open in R/W mode and so the downgrade fails.

Bah, OK, thanks for the report.  Maybe we should change leases so that
they never conflict with theopen that they're set on.


More information about the samba-technical mailing list