Re: Strange "beagle" interaction..

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: J. Bruce Fields <bfields@...>, Junio C Hamano <gitster@...>, Git Mailing List <git@...>, Johannes Schindelin <Johannes.Schindelin@...>
Date: Tuesday, November 13, 2007 - 5:44 pm

On 11/13/07, Linus Torvalds <torvalds@linux-foundation.org> wrote:

Things like Beagle need a guaranteed log of global inotify events.
That would let them efficiently find changes made since the last time
they updated their index.

Right now every time Beagle starts it hasn't got a clue what has
changed in the file system since it was last run. This forces Beagle
to rescan the entire filesystem every time it is started. The xattrs
are used as cache to reduce this load somewhat.

A better solution would be for the kernel to log inotify events to
disk in a manner that survives reboots. When Beagle starts it would
locate its last checkpoint and then process the logged inotify events
from that time forward. This inotify logging needs to be bullet proof
or it will mess up your Beagle index.

Logged files systems already contain the logged inotify data (in their
own internal form). There's just no universal API for retrieving it in
a file system independent manner.



-- 
Jon Smirl
jonsmirl@gmail.com
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Strange "beagle" interaction.., Linus Torvalds, (Tue Nov 13, 4:56 pm)
Re: Strange "beagle" interaction.., Mike Hommey, (Tue Nov 13, 5:55 pm)
Re: Strange "beagle" interaction.., J. Bruce Fields, (Tue Nov 13, 5:03 pm)
Re: Strange "beagle" interaction.., Linus Torvalds, (Tue Nov 13, 5:30 pm)
Re: Strange "beagle" interaction.., Jon Smirl, (Tue Nov 13, 5:44 pm)
Re: Strange "beagle" interaction.., J. Bruce Fields, (Tue Nov 13, 5:50 pm)
Re: Strange "beagle" interaction.., Jon Smirl, (Tue Nov 13, 5:58 pm)
Re: Strange "beagle" interaction.., David Brown, (Tue Nov 13, 5:49 pm)
Re: Strange "beagle" interaction.., J. Bruce Fields, (Tue Nov 13, 5:21 pm)