VFS layer: Catch an OpLock/Lease break?

Jeremy Allison jra at samba.org
Fri May 26 20:17:56 UTC 2017


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.

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



More information about the samba-technical mailing list