mirroring in JFFS2

Jörn Engel joern at wohnheim.fh-wedel.de
Tue Nov 12 12:27:51 EST 2002

On Tue, 12 November 2002 17:07:22 +0000, David Woodhouse wrote:
> But it's not too bad -- you GC on _both_ media till you have enough space
> on them both for the write you want to do, then you allow the allocation 
> call to return, do the write to both media and return. Some detail in 
> sorting out the case where a page write crosses an eraseblock boundary and 
> ends up split into two on one or both media, but that's not really too hard 
> conceptually -- I suspect it'd make an ugly mess of the code though.

I wonder if it would make sense to expand the erase marker a bit in
this case. For two devices, the erase marker on each device holds the
number of the corresponding block on the other. This would allow you
to prioritize bad block recovery, once you find one.

This is quite a special case, though. More devices and the procedure
is pointless. Different device types and the procedure is not


"Translations are and will always be problematic. They inflict violence 
upon two languages." (translation from German)

More information about the linux-mtd mailing list