VFS module - filter everyone etc.
Stefan (metze) Metzmacher
metze at metzemix.de
Thu Apr 24 15:42:22 GMT 2003
At 13:11 24.04.2003 +0200, Rainer Link wrote:
>Stefan (metze) Metzmacher wrote:
>[..]
>>(If you want you can send me the code when the new vfs module system is
>>in CVS
>>and I will convert it for you :-)
>
>Stefan (et al): I would really appreciate, if
>
>- there's some kind of a HowTo telling how to convert existing VFS modules
>into the new VFS system
I'll writting a tutorial and an example module,
witch descripes how to update 2.2 and 3.0aplha modules
But first I'll complete the code and test it :-)
>- the documentation of VFS modules could be expanded imho (e.g.
>Samba-Developers-Guide.pdf) :-)
this tutorial will find place in the Developers-Guide :-)
>- is there a prefered way, how memory for private data (i.e.
>vfs_handle->data) should be allocated? via talloc as in
>modules/vfs_recycle.c (as in 3_0 and HEAD)? My own VFS modules currently
>use global vars and I really would like to get rid of that ASAP.
the memory could be talloced on the conn->mem_ctx talloc context,
witch I will add with the new vfs interface.
or you can use memory allocation as you want.
and the freeing will be done by the vfs_hanlde->free_data(&vfs_handle->data);
metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de>
More information about the samba-technical
mailing list