vfs_handle_struct->data usage

Stefan (metze) Metzmacher metze at samba.org
Sun Apr 23 08:31:21 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Lendecke schrieb:
> 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
> this.
also read this
http://www.samba.org/samba/docs/man/Samba-Developers-Guide/vfs.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFESztZm70gjA5TCD8RApQjAKCj2DL5PhHByg4wuFu3OTAUDNW8zQCfReHw
ZVZ5YXVYzUMDrozIwFuvL7c=
=N4xv
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list