Developing a VFS plugin for inhouse backup solution

Alexander Bokovoy ab at samba.org
Sun Feb 13 08:05:10 GMT 2005


On Sat, Feb 12, 2005 at 10:06:02PM -0800, Jeremy Allison wrote:
> On Sat, Feb 12, 2005 at 05:12:46PM -0800, Brian Gunlogson wrote:
> > Inside my VFS SMB_VFS_OP_OPEN I want to store per-file data. The data needs to be accessible when
> > SMB_VFS_OP_CLOSE is called. Where (in what structure) should per-file data be stored?
> 
> This is a bug in Samba really. We should have a "private" data pointer
> available in the files_struct and the connection_struct for VFS use. I'll
> fix this for 3.0.12.
We do have it already in vfs_handle_struct. Each VFS functions gets a
handle specific to particular VFS module and can operate on data stored in
handle by SMB_VFS_HANDLE_XXX_DATA() macros.

A brief description of it is in Developer's Guide.

-- 
/ Alexander Bokovoy
Samba Team                      http://www.samba.org/
ALT Linux Team                  http://www.altlinux.org/
Midgard Project Ry              http://www.midgard-project.org/
-------------- 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/20050213/504c9200/attachment.bin


More information about the samba-technical mailing list