Developing a VFS plugin for inhouse backup solution
Jeremy Allison
jra at samba.org
Sun Feb 13 18:24:16 GMT 2005
On Sun, Feb 13, 2005 at 11:05:10AM +0300, Alexander Bokovoy wrote:
> 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.
Ah - not widely known (by me anyway :-) then :-).
Thanks,
Jeremy.
More information about the samba-technical
mailing list