From: "Niraj kumar" <niraj17@gmail.com>
To: "Evgeniy Polyakov" <zbr@ioremap.net>
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 18:43:01 +0530 [thread overview]
Message-ID: <b82a89170812200513q1a27b62ap590fb6fbad930a@mail.gmail.com> (raw)
In-Reply-To: <20081220104048.GB23632@ioremap.net>
>>
>> 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.
I saw your patch and the related discussion...
But I am thinking that filtering in userspace based on pid/tid
could be too much overhead when the data that I am interested
in might be just a small fraction of the whole thing...
I was hoping to add a flag (similar to IN_ATTRS that you have added)
which, when used, will only collect events for the calling
process and it's children...
-Niraj
next prev parent reply other threads:[~2008-12-20 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-20 6:51 Niraj kumar
2008-12-20 10:40 ` Evgeniy Polyakov
2008-12-20 13:13 ` Niraj kumar [this message]
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=b82a89170812200513q1a27b62ap590fb6fbad930a@mail.gmail.com \
--to=niraj17@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zbr@ioremap.net \
/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
Powered by JetHome