From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O9YnQ-0000Ac-KK for garchives@archives.gentoo.org; Wed, 05 May 2010 07:13:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA899E0835; Wed, 5 May 2010 07:12:58 +0000 (UTC) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.104]) by pigeon.gentoo.org (Postfix) with ESMTP id EEF99E0835 for ; Wed, 5 May 2010 07:12:57 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYFACS34Et8qP5F/2dsb2JhbACRHIwmcb4ghRMEgzw X-IronPort-AV: E=Sophos;i="4.52,332,1270396800"; d="scan'208";a="550832280" Received: from unknown (HELO moriah.localdomain) ([124.168.254.69]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 05 May 2010 15:12:49 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 54BA01C768BD for ; Wed, 5 May 2010 15:12:45 +0800 (WST) X-Virus-Scanned: amavisd-new at localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D1R5j26yQjR6 for ; Wed, 5 May 2010 15:12:42 +0800 (WST) Received: from [192.168.48.1] (troll [192.168.48.1]) by moriah.localdomain (Postfix) with ESMTP id 3F4131C2CA15 for ; Wed, 5 May 2010 15:12:42 +0800 (WST) Subject: Re: [gentoo-user] kernel notification of file system changes From: Bill Kenworthy To: gentoo-user@lists.gentoo.org In-Reply-To: <1273042474.20354.17.camel@localhost> References: <1273042474.20354.17.camel@localhost> Content-Type: text/plain Date: Wed, 05 May 2010 15:12:41 +0800 Message-Id: <1273043561.24807.40.camel@troll> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 37e06117-26e1-4d78-8988-346aef048a06 X-Archives-Hash: a792fcb3e8ef9579c1d2c0ab607efedd Can the older dnotify do what you want? - it monitors files differently to inotify. There is also gammin/fam. BillK On Wed, 2010-05-05 at 16:24 +0930, Iain Buchanan wrote: > Hi, > > I'm looking for some kernel-based notification of changes to my file > system. I've been looking at inotify, but it's not exactly what I want. > > Basically I want to know if _any_ write occurs anywhere. I don't want > to register a whole bunch of files to watch, I just want to watch an > entire mount. When a file is changed (ie. a write operation occurs), I > then want to add that file or fd to a list in RAM. That's all. > > I know this may be a lot of data, considering streams and devices, but I > can filter out /dev, /proc, etc. and just focus on "real" files. > > Is there anything that can do this? > > thanks :)