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 1O9o3A-00071V-9t for garchives@archives.gentoo.org; Wed, 05 May 2010 23:30:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B807DE086F; Wed, 5 May 2010 23:30:29 +0000 (UTC) Received: from mail2.pcorp.com.au (mail2.pcorp.com.au [150.101.72.19]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B4C4E086F for ; Wed, 5 May 2010 23:30:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail2.pcorp.com.au (Postfix) with ESMTP id 90F0FA00015 for ; Thu, 6 May 2010 09:00:27 +0930 (CST) X-Virus-Scanned: amavisd-new at mail2.pcorp.com.au Received: from mail2.pcorp.com.au ([127.0.0.1]) by localhost (mail2.pcorp.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ndc7wf49ZbU5; Thu, 6 May 2010 09:00:27 +0930 (CST) Received: from [172.16.0.52] (unknown [172.16.0.52]) by mail2.pcorp.com.au (Postfix) with ESMTP id 2BF9CA00013 for ; Thu, 6 May 2010 09:00:27 +0930 (CST) Subject: Re: [gentoo-user] kernel notification of file system changes From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <1273043561.24807.40.camel@troll> References: <1273042474.20354.17.camel@localhost> <1273043561.24807.40.camel@troll> Content-Type: text/plain; charset="ISO-8859-1" Date: Thu, 06 May 2010 08:59:05 +0930 Message-ID: <1273102145.20354.25.camel@localhost> 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.28.3.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6ee35a6a-b1ba-4890-b545-c25e8ffcb217 X-Archives-Hash: 5d60e87872efea215a738f6fccc40863 On Wed, 2010-05-05 at 15:12 +0800, Bill Kenworthy wrote: > Can the older dnotify do what you want? - it monitors files differently > to inotify. There is also gammin/fam. dnotify locks the files or directories you want to watch, so it would prevent external media from being unmounted. dnotify also uses a file descripter per watched item, which could get interesting for large amounts of watches! I'm not sure about FAM, but Gamin uses inotify or dnotify anyway (in Linux). I think they're all designed in a similar way: you have to register a whole bunch of files or directories to watch. thanks, -- Iain Buchanan He that is giddy thinks the world turns round. -- William Shakespeare, "The Taming of the Shrew"