Re: [RFC][PATCH] inotify 0.9

From: Robert Love
Date: Thu Sep 16 2004 - 21:34:06 EST


On Fri, 2004-09-17 at 00:35 +0100, Alan Cox wrote:

> How many of the races matter. There seem to be several different
> problems here and mixing them up might be a mistake.
>
> 1. I absolutely need to get the right file at the right moment, please
> mass me a descriptor to the file as the user closes it so I always get
> it right (indexer, virus checker)
>
> 2. If something happens bug me and I'll have a look (eg file manager)

I think we want a solution that works well for both cases.

E.g., we have a few different needs:

- Stuff like Spotlight-esque automatic Indexers.
- File manager notifications
- Other GUI notifications (desktop, menus, etc.)
- To prevent polling (e.g. /proc/mtab)
- Existing dnotify users

dnotify is pretty lame for any of the above situations. Even for
something as trivial as watching the current open directory in Nautilus,
look at the hoops we have to just through with FAM.

And dnotify utterly falls apart on removable media or for any "large"
sort of job, e.g. indexing.

Robert Love


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/