[PATCH]Add JFFS2 eraseblock header support
Jörn Engel
joern at wohnheim.fh-wedel.de
Tue Sep 20 08:43:44 EDT 2005
On Tue, 20 September 2005 14:27:47 +0200, Jörn Engel wrote:
> On Tue, 20 September 2005 15:56:04 +0400, Artem B. Bityutskiy wrote:
> >
> > 1. Write code which understands both cleanmarkers and EB headers.
> > 2. Test that old images are actually work well on new JFFS2.
> > 3. Implement 1:1. Remove cleanmarkers support as they are not needed
> > anymore.
>
> Not quite. He must:
> 1. Assume 1:1 mapping. If people are not, that's a completely
> seperate problem.
> 2. Write robust code that does not depend on EBH. If the header is
> missing, it should just create a new one and initialize its members
> as best it can - e.g. taking the average erase count.
> 3. Not emit clean markers anymore - they are not needed.
Btw, most of the complexity in Zhao's code comes from the attempt to
be future-proof and all that. If he simply tried to implement better
wear levelling, it would be half the effort.
Jörn
--
The cheapest, fastest and most reliable components of a computer
system are those that aren't there.
-- Gordon Bell, DEC labratories
More information about the linux-mtd
mailing list