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 1O9g8B-0004R3-Un for garchives@archives.gentoo.org; Wed, 05 May 2010 15:03:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26A17E0743; Wed, 5 May 2010 15:02:21 +0000 (UTC) Received: from mta-1.ms.rz.rwth-aachen.de (mta-1.ms.rz.RWTH-Aachen.DE [134.130.7.72]) by pigeon.gentoo.org (Postfix) with ESMTP id EACEBE0743 for ; Wed, 5 May 2010 15:02:20 +0000 (UTC) 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 Content-transfer-encoding: 7BIT Content-disposition: INLINE Content-type: TEXT/PLAIN; CHARSET=us-ascii Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0L1Y00A97CFWXIF0@mta-1.ms.rz.RWTH-Aachen.de> for gentoo-user@lists.gentoo.org; Wed, 05 May 2010 17:02:20 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.52,333,1270418400"; d="scan'208";a="56358335" Received: from relay-2.ms.rz.rwth-aachen.de (HELO relay.rwth-aachen.de) ([134.130.7.75]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Wed, 05 May 2010 17:02:20 +0200 Received: from numa-i.igpm.rwth-aachen.de (numa-i.igpm.RWTH-Aachen.DE [134.130.161.252]) by relay.rwth-aachen.de (8.13.8+Sun/8.13.8/1) with ESMTP id o45F2JJ9029614 for ; Wed, 05 May 2010 17:02:19 +0200 (CEST) Received: by numa-i.igpm.rwth-aachen.de (Postfix, from userid 230) id 1153A9C3; Wed, 05 May 2010 17:02:20 +0200 (CEST) Date: Wed, 05 May 2010 17:02:19 +0200 (CEST) From: Helmut Jarausch Subject: Re: [gentoo-user] kernel notification of file system changes To: gentoo-user@lists.gentoo.org In-reply-to: <1273042474.20354.17.camel@localhost> Message-id: References: <1273042474.20354.17.camel@localhost> X-Archives-Salt: b7b18d03-c276-46d7-b458-243074229696 X-Archives-Hash: 2586f8e96c8ec874f2e8ab382046bddc On 5 May, 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? > Might be I've just asked a similar question on the ZSH mailing list. Please have a look at inotifywatch from the sys-fs/inotify-tools package. It can watch a directory tree recursively. I hope this helps, Helmut.