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 1O9j3d-0008UC-SB for garchives@archives.gentoo.org; Wed, 05 May 2010 18:10:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28FCEE096B for ; Wed, 5 May 2010 18:10:53 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 5FDC7E072D for ; Wed, 5 May 2010 17:35:50 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.52,335,1270422000"; d="scan'208";a="186446770" Received: from 213-152-39-90.dsl.eclipse.net.uk (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 05 May 2010 18:35:49 +0100 Received: from funf.stroller.uk.eu.org (funf.stroller.uk.eu.org [192.168.1.71]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id 778B26C4AC for ; Wed, 5 May 2010 18:35:45 +0100 (BST) Message-Id: From: Stroller To: gentoo-user@lists.gentoo.org In-Reply-To: <4BE1A9C5.5090709@f_philipp.fastmail.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 (Apple Message framework v936) Subject: Re: [gentoo-user] kernel notification of file system changes Date: Wed, 5 May 2010 18:35:37 +0100 References: <1273042474.20354.17.camel@localhost> <07250F7A-39A9-4417-A0E8-CBCD4E8CDDC6@stellar.eclipse.co.uk> <4BE1A9C5.5090709@f_philipp.fastmail.net> X-Mailer: Apple Mail (2.936) X-Archives-Salt: 959f6412-4409-4372-9017-0d0ee5acd4af X-Archives-Hash: 3985ad72d2f148244532a6734b1b2aca On 5 May 2010, at 18:24, Florian Philipp wrote: >> ... >> man inotify(7): >> ... When a directory is monitored, inotify will return events for the >> directory itself, and for files inside the directory. >> ... > > To repeat my comment on Iain's original "backup to a cold-swap drive" > thread ... Sorry, I started ignoring that almost immediately it was posted. He rejected too quickly too many workable solutions to basically functional backup. Perhaps Iain is a perfectionist, but I did not wish to follow the thread. > ... Inotify has two drawbacks which make it hard or even impossible > to use for Iain's use case: > > a) It does not work recursively which means that you have to create a > new handle for each subdirectory. Of course, this only means more work > for the programmer but there is also the problem that Pardon me. I assumed that "files inside the directory" meant that foo would be be changed when foo/bar changed, thus monitoring grunt would reflect changes in grunt/foo/bar. I overlooked that a directory is not a file. Stroller.