vfs_handle_struct->data usage

Jiri Klouda jk at zg.cz
Sun Apr 23 19:45:30 GMT 2006


Hi,
I also suggest to read up on the talloc methods and
use them for memory allocation in the 'data' pointer.
And yes, that is what it is there for.

Regards,
-Jiri

On Sun 23-04-06 11:41:38, Linux wrote:
> Hi,
> 
> 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?
> 
> Thanks,
> -- Junji Kanemaru
> Linuon Inc.
> Tokyo Japan

-- 
Jiri Klouda <jk at zg.cz>
http://www.zg.cz/~jk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20060423/b5f70373/attachment.bin


More information about the samba-technical mailing list