Knowing in the VFS when we are dealing with different SMB requests ...
Volker Lendecke
Volker.Lendecke at SerNet.DE
Wed Jan 9 02:48:03 MST 2013
On Tue, Jan 08, 2013 at 09:47:06AM -0800, Richard Sharpe wrote:
> Hi folks,
>
> We think that we would like to know in our VFS when Samba is
> processing a different SMB than the last one. This will allow us to
> throw away any cached info.
>
> It seems that there are two ways to do this:
>
> 1. Introduce a VFS function saying something like Next Request and its
> MID is XXX, or,
>
> 2. Pass the MID into each VFS call somehow ...
>
> The problem I have with the first approach is that AIO and tevent has
> the potential to make it impossible to reliably know which request you
> are dealing with.
>
> Does anyone have any suggestions?
I would like to know what exact information it is that you
want to throw away. SMB requests are usually very, very
short-lived and caching, so I am surprised there is real
need to cache something while a single SMB is handled.
With best regards,
Volker Lendecke
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical
mailing list