From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Niraj kumar" Subject: Re: [Question] inotify : process based filtering of events Date: Sat, 20 Dec 2008 18:43:01 +0530 Message-ID: References: <20081220104048.GB23632@ioremap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-kernel , linux-fsdevel@vger.kernel.org To: "Evgeniy Polyakov" Return-path: Received: from nf-out-0910.google.com ([64.233.182.185]:11603 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751171AbYLTNND (ORCPT ); Sat, 20 Dec 2008 08:13:03 -0500 In-Reply-To: <20081220104048.GB23632@ioremap.net> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: >> >> 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