Re: [RFC/PATCH] inotify -- a dnotify replacement

From: Davide Libenzi
Date: Mon May 10 2004 - 18:00:15 EST

On Mon, 10 May 2004, John McCutchan wrote:

> On Mon, 2004-05-10 at 18:31, Davide Libenzi wrote:
> > On Mon, 10 May 2004, John McCutchan wrote:
> >
> > > > 3) dnotify cannot easily watch changes for a directory hierarchy
> > >
> > > People don't seem to really care about this one. Alexander Larsson has
> > > said he doesn't care about it. It might be nice to add in the future.
> >
> > Please excuse my ignorance, but who is Alexander Larsson? A dnotify
> > replacement that does not have the ability to watch for a hierarchy is
> > pretty much useless. Or do you want to drop thousands of single watches to
> > accomplish that?
> Alexander Larsson is the maintainer of nautilus, gnome-vfs and I think
> the dnotify patch for fam. He made a post to l-k a month or two ago
> about why he doesn't care about it. I do plan on adding this feature in
> the near future though.

GUIs have different requirements. They display a finite number of views on
directories, so for them it is fine to not have hierarchy watching
capabilities. A sane dnotify API should have the ability to watch hierarchies.
And it should not even be that much hard to do, since you can just
backtrace the the point where the change happened to see if there are
watchers on the parent directories.

- Davide

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at