custom VFS module
Alexander Bokovoy
a.bokovoy at sam-solutions.net
Thu Jul 31 18:46:14 GMT 2003
Hi!
On Thu, Jul 31, 2003 at 06:42:55PM +0000, jason rexilius wrote:
> Hello,
> I am interested in interjecting a piece of logic into SMB file sharing
> activity and believe that a VFS module would be the right way to go (
> maybe? ). If that is the case then I have two questions (forgive me if
> these are dumb, I have done some searching):
>
> 1) Does there already exist a module that can exec a foreign executable
> upon reads, writes, creates, deletes of a file? (i.e. if i wanted to have a
> perl routine send an email everytime a user deleted a file, an example
> ignore the obvious performance issues).
No, it doesn't exist.
> 2) If not, and I needed to code my own, would I start with the "skel"
> module?
Yes, you can start with skel module as example, -- and also look into
other sample VFS modules in source/modules/ subdirectory of SAMBA_3_0.
Also look into dev-doc's chapter on VFS development.
> What I am actually trying to do is interject a simple versioning and
> locking function into writes and deletes that is compatible with the
> routines I have in a web based file manager I wrote. The objective is
> simple filesharing with locking and versioning accessible via web or
> locally shared drives.
>
> If this does not exist and I start coding it I would probably create a VFS
> module that could be configured to exec foreign objects so that others
> could use it. Does this sound reasonable?
Take care about security in this environment.
--
/ Alexander Bokovoy
---
The light at the end of the tunnel may be an oncoming dragon.
More information about the samba-technical
mailing list