vfs_handle_struct->data usage

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Apr 23 07:47:18 GMT 2006

On Sun, Apr 23, 2006 at 11:41:38AM +0900, Linux wrote:
> I'm writing a module that is extended version of vfs_audit.
> In that module I need to keep some data storage while
> conn is up. Then I found there's a member "data" in
> vfs_handle_struct which seems not being used in smbd
> sources, it just gets freed in conn_free if alloc'ed.
> So I thought I could use it to hold malloc'ed memory storage
> until close() gets called as module private storage.
> Would it be problematic in some case or  possibly stomping
> "data" storage in some case?

The data member of the vfs_handle_struct is exactly made for

What do you want to achieve with your module? You might want
to start from the full_audit module, there all operations
are redirected.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060423/b6ddd093/attachment.bin

More information about the samba-technical mailing list