All of lore.kernel.org
 help / color / mirror / Atom feed
From: Evgeniy Polyakov <zbr@ioremap.net>
To: Niraj kumar <niraj17@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [Question] inotify : process based filtering of events
Date: Sat, 20 Dec 2008 13:40:48 +0300	[thread overview]
Message-ID: <20081220104048.GB23632@ioremap.net> (raw)
In-Reply-To: <b82a89170812192251u3544f087x94775b6864f5ae8d@mail.gmail.com>

Hi.

On Sat, Dec 20, 2008 at 12:21:33PM +0530, Niraj kumar (niraj17@gmail.com) wrote:
> I am trying to use inotify to monitor filesystem events but
> my problem is that I am only interested in changes that
> is being done by a particular process and it's children
> (could be the same process which used inotify APIs).
> 
> Is it possible to achieve this process based filtering of events
> using inotify infrastructure?

You can try using inotify nested attributes patch [1] and filter events
in userspace based on reported pid/tid. With the fsnotify changes coming
it may be possible to have similar functionality there.

1. Inotify nested attributes.
http://lkml.org/lkml/2008/11/25/272

2. Example usage and test application.
http://www.ioremap.net/node/73

-- 
	Evgeniy Polyakov

  reply	other threads:[~2008-12-20 10:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-20  6:51 [Question] inotify : process based filtering of events Niraj kumar
2008-12-20 10:40 ` Evgeniy Polyakov [this message]
2008-12-20 13:13   ` Niraj kumar
2008-12-20 17:13     ` Evgeniy Polyakov

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=20081220104048.GB23632@ioremap.net \
    --to=zbr@ioremap.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=niraj17@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.