JFFS2 an nodes checking

David Woodhouse dwmw2 at infradead.org
Tue Sep 28 11:04:33 EDT 2004


On Tue, 2004-09-28 at 18:58 +0400, Artem B. Bityuckiy wrote:
> What would you say if somebody offer you a patch with such optimization 
> ? Would you reject it? Or you would accept it and rename JFFS2 to JFFS3 
> :-) ?

I'd probably reject it unless I was completely convinced it was
necessary, and it was the only way to do it. We're not ready for JFFS3
yet.

How about introducing a new node type which can be ignored by older
JFFS2 implementations? Consider an 'inode checkpoint' node, which tells
you instantly the state of all the nodes with versions smaller than it,
so you don't have to check all those. You only have to read and check
the CRC on the nodes _newer_ than the checkpoint.

Then you can write these whenever you feel like it, to large files. 

> Anyway, the complex solution with partial fragtrees is the potential 
> source of new bugs, etc.

True. It took long enough to get the first fragtree stuff right, and I
still have the mental scars :)

-- 
dwmw2





More information about the linux-mtd mailing list