[arch-general] inotify and locate

Mantas M. grawity at gmail.com
Sun Feb 26 08:16:01 EST 2012


On Sun, Feb 26, 2012 at 11:49:55AM +0000, Andrea Crotti wrote:
> It's a bit a shame that there isn't any default good indexing system
> for Linux.
> Now there is also a inotify implementation and tools to set up
> watchers on the filesystem,
> so why are we still mainly stuck with locate and the expensive updatedb?
> 
> Are there other problems with the inotify approach maybe or just
> lack of developer interest?

One problem with inotify is that it, AFAIK, requires adding each and every directory separately to the inotify watch, which just doesn't work with the entire /home, much less /.

Fanotify can watch entire trees easily, but is a root-only API for now.

-- 
Mantas Mikulėnas <grawity at gmail.com>


More information about the arch-general mailing list