Running/triggering external processes on certain events

simo idra at samba.org
Mon Jan 9 13:07:14 GMT 2006


On Mon, 2006-01-09 at 10:52 +0200, Timo Neuvonen wrote:
> > > [FileShare]
> > >   <other share-spesific stuff>
> > >   pre move = /usr/bin/xxx1
> > >   post move = /usr/bin/xxx2
> > >   post create = /usr/bin/xxxc
> > >   pre delete = /us/bin/xxxd
> >
> > Have you considered the possible performance implications of this?
> >
> No, not really. As a first thought, I guess the _possibility_ to do this
> wouldn't propably cost a lot on performance.
> 
> Instead, configuring a certain share to handle this propably caused
> noticeable impact on performance, both on invoking the new process, and
> doing the necessary (at least) minimal actions within the process. But since
> this could be configured for a certain share only, it would propably be
> possible to choose which files are accessed thru the share in question.

In implementing such a VFS it would probably be better to use a
permanent running daemon and pipe commands to it from the vfs module.
The impact of starting a new binary each time some action is performed
is probably overkill.

Simo.



More information about the samba-technical mailing list