create_conn_struct_tos() and connection re-use
Jeremy Allison
jra at samba.org
Sat Jun 23 04:33:33 UTC 2018
On Sat, Jun 23, 2018 at 02:58:48PM +1200, Andrew Bartlett wrote:
> On Fri, 2018-06-22 at 15:35 -0700, Jeremy Allison wrote:
> > On Sat, Jun 23, 2018 at 12:15:56AM +0200, Stefan Metzmacher wrote:
> > >
> > > There's currently no way to do that, sorry.
> > > I guess you need to create something better,
> > > In python you need some kind of 'connection'.
> >
> > Yep that's the right level of abstraction
> > if you need to keep a VFS connection struct
> > alive between different python calls.
>
> Yes, that was my plan.
>
> > Indeed. This code was never designed to be
> > called from python, it's for the needs of
> > smbd and the DFS code. It's a miracle it
> > works from python at all :-).
>
> A happy miracle :-)
>
> I cribbed it all from vfstest BTW.
Yeah, vfstest was never meant to be a production-style
solution, just something hacked up to make VFS testing
work :-).
More information about the samba-technical
mailing list