Re: [OT] inotify hack for locate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jon Masters wrote:

On 3/5/06, Jesper Juhl <[email protected]> wrote:

On 3/5/06, Jon Masters <[email protected]> wrote:

I'm fed up with those finds running whenever I power on.

You run updatedb at boot time?

No, but said box will catch up cron jobs on boot.

Why not run it from cron at night like most people do?

That's not the point. It usually does. I'm interested to know if
anyone has written a daemon that can sit and just do this
synchronously on my desktop - then not only do I /not/ have to run
updatedb every day but I can also have a locate that is always up to
the minute.
I haven't heard about anyone doing this.  You could modify
the VFS to notify you everytime a file is created, moved or deleted.
That should give you what you want, but at the cost of delaying
those operations.

Another option would be to make a filesystem that stores its
directory structure (or a copy of it) in a single file, so that
a locate-like program can do quick lookups of the always-correct
data.

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux