1:1 mapping
Jörn Engel
joern at wohnheim.fh-wedel.de
Fri Sep 23 05:08:02 EDT 2005
On Fri, 23 September 2005 10:56:56 +0800, zhao forrest wrote:
> >> > Can you explain "when JFFS2 has detected that the image is an old
> >> > image" in C?
> >> Well, we may even do better. Scan FS. If we meet any node which crosses
> >> the eraseblock boundary - bye bye. That must be easy to implement as
> >> node headers contain the total node length.
> >
> >Sounds fine. Yes, that appears to be the best solution.
> >
> This solution has been in my patch.
>
> Until now we only disscussed one aspect of the problem.
> Another aspect is that what should we do when users mount new JFFS2 image
> with old JFFS2 code? Is the "big warning" in readme enough? Or we should
> let old JFFS2 code reject mounting new JFFS2 image?
Just let them mount it. If people actually convert to virtual block
in this way, it should be relatively safe. On their way back they
will notice.
Really, this is an unlikely case of an unlikely case. People would
have to
1. have enough erase blocks to need virtual blocks,
2. not have MTD_NO_VIRTBLOCKS flag set,
3. decide to downgrade from newer code,
4. by all chances, previously have upgraded to the newer code and
either not see a problem or ignore it.
Just ignore that case.
Jörn
--
I don't understand it. Nobody does.
-- Richard P. Feynman
More information about the linux-mtd
mailing list