generic cache in FS
Now, it seems that only the ext2 fs is using a cache. But later, almost all fs (I suppose) need a cache.
I think that we can use a generic cache (independently of any fs implementation). Perhaps, we can try to use the commons-cache from apache/jakarta (I don't know if it can be usefull for us).
If needed, we can have an abstract cache and concrete caches for fs implementations.
Of course, the cache could be used for write operations (delayed write) but also to anticipate future reads (If we read a block, perhaps we will ask the next block just after).
What do you think ? Does anyone thought about it ?