per connection data

James Peach jpeach at
Mon Nov 6 17:30:31 GMT 2006

On Nov 6, 2006, at 8:36 AM, Novgorodsky, Sergey wrote:

> What does "per connection data" mean in regards to a vfs module?
> E.g., with Microsoft client , AFAIK we have a single TCP connection
> (use the same SMBD) for multiple shares.
> Does that mean the same vfs_handle_struct->data will be reused for  
> all those shares?

No, you get a new vfs_handle_struct->data for each tree connection.

> What's the best way to keep data private per CIFS session(per  
> share?) in vfs module?

You can keep per-module data on the VFS handle or you can keep per- 
file data using VFS_ADD_FSP_EXTENSION.

James Peach | jpeach at

More information about the samba-technical mailing list