Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] kernel notification of file system changes
Date: Wed, 05 May 2010 18:10:53
Message-Id: C489EC17-4552-483B-9A9F-0B0EAEB5443D@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] kernel notification of file system changes by Florian Philipp
1 On 5 May 2010, at 18:24, Florian Philipp wrote:
2 >> ...
3 >> man inotify(7):
4 >> ... When a directory is monitored, inotify will return events for the
5 >> directory itself, and for files inside the directory.
6 >> ...
7 >
8 > To repeat my comment on Iain's original "backup to a cold-swap drive"
9 > thread ...
10
11 Sorry, I started ignoring that almost immediately it was posted. He
12 rejected too quickly too many workable solutions to basically
13 functional backup. Perhaps Iain is a perfectionist, but I did not wish
14 to follow the thread.
15
16 > ... Inotify has two drawbacks which make it hard or even impossible
17 > to use for Iain's use case:
18 >
19 > a) It does not work recursively which means that you have to create a
20 > new handle for each subdirectory. Of course, this only means more work
21 > for the programmer but there is also the problem that
22
23 Pardon me. I assumed that "files inside the directory" meant that foo
24 would be be changed when foo/bar changed, thus monitoring grunt would
25 reflect changes in grunt/foo/bar. I overlooked that a directory is not
26 a file.
27
28 Stroller.

Replies

Subject Author
Re: [gentoo-user] kernel notification of file system changes Iain Buchanan <iaindb@××××××××××××.au>