mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Riesen <Alexander.Riesen@synopsys.com>
To: Martin Rode <martin.rode@programmfabrik.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Callbacks to userspace from VFS ?
Date: Wed, 17 Apr 2002 16:45:19 +0200	[thread overview]
Message-ID: <20020417164519.A16717@riesen-pc.gr05.synopsys.com> (raw)
In-Reply-To: <1019053273.8655.109.camel@marge>

Hi,

try reading Documentation/dnotify.txt. Maybe it'll be enough for you.

-alex

On Wed, Apr 17, 2002 at 04:21:13PM +0200, Martin Rode wrote:
> Dear kernel hackers,
> 
> after programming at least 10 scripts polling a what we call
> "hot-folder" for new files I had the idea to integrate call backs into
> the file system layer of the linux kernel.
> 
> I would like to tell the kernel to callback my program whenever a file
> or directory is being inserted, updated or deleted.
> 
> A simple approach could look like this (from the users POV):
> 
> mount -o callback=/tmp/myprogram callback_options=some_options
> callback_folder=hotfolder callback_folder=hotfolder2 /dev/some /home
> 
> depending on what has happend in "hotfolder" or "hotfolder2" the
> "myprogram" would be started and receive the two arguments:
> 
> DELETE filename of the file deleted
> UPDATE filename
> INSERT filename
> 
> It would be neat if one could change the mount options while the
> filesystem is mounted.
> 
> If you could implement such a feature we had another great argument why
> the linux kernel has something to offer which others haven't. With such
> a feature one could program solutions for the real world which are
> always annoying to program (cue: "hotfolder"!).
> 
> What do you people think about the idea? Please reply to me personally,
> too, I'm not a subscriber.
> 
> Thanks for taking a look at the idea.
> 
> ;Martin

  parent reply	other threads:[~2002-04-17 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-17 14:21 Martin Rode
     [not found] ` <15549.34936.502136.339319@laputa.namesys.com>
2002-04-17 14:40   ` Martin Rode
2002-04-17 17:09     ` Jamie Lokier
2002-04-17 14:45 ` Alex Riesen [this message]
2002-04-18  1:22 ` Keith Owens
2002-04-18 14:10   ` Michael Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020417164519.A16717@riesen-pc.gr05.synopsys.com \
    --to=alexander.riesen@synopsys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.rode@programmfabrik.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®