From: Dale Blount <linux-kernel@dale.us>
To: Robert Love <rml@novell.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] inotify 0.22
Date: Mon, 04 Apr 2005 16:50:55 -0400 [thread overview]
Message-ID: <1112647855.520.20.camel@dale.velocity.net> (raw)
In-Reply-To: <1112644936.6736.7.camel@betsy>
> inotify is intended to correct the deficiencies of dnotify, particularly
> its inability to scale and its terrible user interface:
>
> * dnotify requires the opening of one fd per each directory
> that you intend to watch. This quickly results in too many
> open files and pins removable media, preventing unmount.
> * dnotify is directory-based. You only learn about changes to
> directories. Sure, a change to a file in a directory affects
> the directory, but you are then forced to keep a cache of
> stat structures.
> * dnotify's interface to user-space is awful. Signals?
>
> inotify provides a more usable, simple, powerful solution to file change
> notification:
>
> * inotify's interface is a device node, not SIGIO. You open a
> single fd to the device node, which is select()-able.
> * inotify has an event that says "the filesystem that the item
> you were watching is on was unmounted."
> * inotify can watch directories or files.
>
Robert and others,
Will inotify watch directories recursively? A quick browse through the
source doesn't look like it, but I very well could be wrong. Last I
checked, dnotify did not either. I am looking for a way to synchronize
files in as-real-as-possible-time when they are modified. The ideal
implementation would be a kernel "hook" like d/inotify and a client
application that watches changes and copies them to a remote server for
redundancy purposes. A scheduled rsync works decently, but has a lag
time of 2-3 (or more) hours on certain files on a large filesystem.
Will inotify work for this, or does someone else have another
recommended solution to the problem?
Thanks,
Dale
next prev parent reply other threads:[~2005-04-04 20:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-04 20:02 Robert Love
2005-04-04 20:18 ` [patch] inotify 0.22 for 2.6.12-rc1-mm4 Robert Love
2005-04-04 20:50 ` Dale Blount [this message]
2005-04-04 21:04 ` [patch] inotify 0.22 Robert Love
2005-04-04 22:21 ` John McCutchan
2005-04-05 9:26 ` Martin Schlemmer
2005-04-05 16:56 ` [patch] updated " Robert Love
2005-04-05 16:59 ` [patch] updated inotify 0.22 for 2.6-mm Robert Love
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1112647855.520.20.camel@dale.velocity.net \
--to=linux-kernel@dale.us \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@novell.com \
--cc=ttb@tentacle.dhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®