[BUG] JFFS2 power loss recovery issues on NAND

Jörn Engel joern at logfs.org
Tue Jun 17 05:24:34 EDT 2008


On Tue, 17 June 2008 10:13:06 +0200, Matthieu CASTET wrote:
> Iwo Mergler wrote:
> > 
> > About how to fix it - what about making the reading without ECC the default
> > and only re-reading with ECC if JFFS2 finds an invalid checksum?
> > 
> But what happen if a but flip happen ?

The exact same problem.

Changing the default is bogus.  Re-reading without ecc on invalid
checksums may be the only solution for jffs2, though.  Either that or
close your eyes and claim that holes in files can happen on power loss.

Jörn

-- 
Fancy algorithms are buggier than simple ones, and they're much harder
to implement. Use simple algorithms as well as simple data structures.
-- Rob Pike



More information about the linux-mtd mailing list