VFS layer: Catch an OpLock/Lease break?

Christopher R. Hertel crh at samba.org
Fri May 26 22:17:50 UTC 2017


On 05/26/2017 03:17 PM, Jeremy Allison wrote:
> On Fri, May 26, 2017 at 01:34:32PM -0500, Christopher R. Hertel via samba-technical wrote:
>> So, quick question:
>>
>> In the VFS layer, how does one catch an OpLock or Lease break request?
>>
>> I need to know when an OpLock/Lease is being broken so that I can remove
>> some cached information that isn't relevant if there is no OpLock.
> 
> These messages go through the messaging subsystem and databases
> above the VFS, they don't go though the VFS.

Okay.

> Inside the VFS you can check the state on the fsp struct which
> you might then use to clear your cache.

That's the general direction in which I was heading.  Thanks!

Chris -)-----




More information about the samba-technical mailing list