Developing a VFS plugin for inhouse backup solution

Jeremy Allison jra at samba.org
Mon Feb 14 23:11:50 GMT 2005


On Mon, Feb 14, 2005 at 08:16:47AM +0100, Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jeremy Allison schrieb:
> | On Sun, Feb 13, 2005 at 12:11:15PM +0100, Stefan (metze) Metzmacher wrote:
> |
> |>per file data can't be a simple void *private_data on the files_struct!
> |
> |
> | That wasn't how I was planning to implement it.
> |
> |
> |>each module in the stack would need to have it's on private pointer for
> |>the open file.
> |>Implementing this in the calling samba code would be very complicated
> |
> |
> | Not really. I was planning to add a "register private data" call which
> | took a name. The VFS caller would have to then call the requisite free
> | function.
> 
> ok, that could work, but please think about that one module can be in the 
> stack twice and each
> instance needs to register it's own data...

Hmmm. The correct error message EEXIST allowing a module to re-register
under a different name could fix that.

Jeremy.


More information about the samba-technical mailing list