Beagle and logging inotify events

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jon Smirl
Date: Tuesday, November 13, 2007 - 5:04 pm

Is it feasible to do something like this in the linux file system architecture?

Beagle beats on my disk for an hour when I reboot. Of course I don't
like that and I shut Beagle off.

---------- Forwarded message ----------
From: Jon Smirl <jonsmirl@gmail.com>
Date: Nov 13, 2007 4:44 PM
Subject: Re: Strange "beagle" interaction..
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "J. Bruce Fields" <bfields@fieldses.org>, Junio C Hamano
<gitster@pobox.com>, Git Mailing List <git@vger.kernel.org>, Johannes
Schindelin <Johannes.Schindelin@gmx.de>


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


-- 
Jon Smirl
jonsmirl@gmail.com
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" 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:
Beagle and logging inotify events, Jon Smirl, (Tue Nov 13, 5:04 pm)
Re: Beagle and logging inotify events, Chuck Lever, (Wed Nov 14, 6:29 am)
Re: Beagle and logging inotify events, Jon Smirl, (Wed Nov 14, 6:44 am)
Re: Beagle and logging inotify events, Chuck Lever, (Wed Nov 14, 7:41 am)
Re: Beagle and logging inotify events, Jon Smirl, (Wed Nov 14, 8:01 am)
Re: Beagle and logging inotify events, Andi Kleen, (Wed Nov 14, 8:30 am)
Re: Beagle and logging inotify events, Chuck Lever, (Wed Nov 14, 9:32 am)
Re: Beagle and logging inotify events, Jon Smirl, (Wed Nov 14, 10:46 am)
Re: Beagle and logging inotify events, J. Bruce Fields, (Wed Nov 14, 12:09 pm)
Re: Beagle and logging inotify events, Jon Smirl, (Wed Nov 14, 12:22 pm)
Re: Beagle and logging inotify events, J. Bruce Fields, (Wed Nov 14, 12:30 pm)
Re: Beagle and logging inotify events, Andreas Dilger, (Wed Nov 14, 12:32 pm)
Re: Beagle and logging inotify events, J. Bruce Fields, (Wed Nov 14, 12:38 pm)
Re: Beagle and logging inotify events, Jan Kara, (Thu Nov 15, 12:59 pm)
Re: Beagle and logging inotify events, J. Bruce Fields, (Thu Nov 15, 1:14 pm)
Re: Beagle and logging inotify events, Jon Smirl, (Thu Nov 15, 1:14 pm)