Re: [Tux3] Tux3 report: A Golden Copy
Daniel Phillips <phillips <at> phunq.net>
2009-01-08 02:50:59 GMT
Hi Jamie,
On Sunday 04 January 2009 18:13, Jamie Lokier wrote:
> Daniel Phillips wrote:
> > > Arguably you want to do this in the VFS layer, not in the low-level
> > > filesystem level if you want most applications to adopt it.
> >
> > It has to be generic all right, but the VFS is not able to do the job
> > on its own. To be useful for indexing, the reported events must
> > already be persistently recorded, and the VFS has no idea about when
> > that happens. The filesystem is the expert on that subject, and it
> > must generate the events. I can't imagine a reasonable VFS-level
> > emulation, or what value the VFS would add by acting as middleman for
> > a stream of filesystem events.
>
> The VFS does have a some helpful generic support for quotas, although
> it also requires filesystem-specific help. This is quite similar.
If the VFS stored the index on the filesystem then it would be similar,
but I don't think anybody will like the idea of the VFS operating an
indexer in-kernel. Given that the indexer is maintained by user space,
the kernel's job is just to deliver the events the user space indexer
needs, which is a very different activity pattern from the generic quota
file scheme.
> I see what you mean about knowing when an event reaches _persistent_
> storage. To be accurate, the event log must be folded into the
> filesystem's transaction/commit model (including right use of barriers
> etc.), and during journal/equivalent recovery, and fsck repair, the
> event log must err on the side of too many rather than too few events.
(Continue reading)