create_conn_struct_tos() and connection re-use

Andrew Bartlett abartlet at
Sat Jun 23 02:58:48 UTC 2018

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.

Andrew Bartlett
Andrew Bartlett             
Authentication Developer, Samba Team
Samba Developer, Catalyst IT

More information about the samba-technical mailing list