JFFS2 Flash Filesystem corrupted

Thomas Gleixner tglx at linutronix.de
Tue Jul 27 09:15:48 EDT 2004


On Tue, 2004-07-27 at 12:45, Billalabeitia, Jose Carlos (GE Consumer &
Industrial) wrote:

Can you please use a mailer which does appropriate formatting !

> I made a test with the JFFS2:
> - Compile the JFFS2 in debug mode level 1.
> - All the messages sent to the console were captured in a file.
> - Run an app. test that sent SIGUP signal to the second partition
>   of the JFFS2 (where the code resides) every 5 seconds.
> - Left it running overnight (14 hours approx.)
>
> What I got was after rebooting the system this morning:
> 
> No anormal message appeared during the mounting process 
> of JFFS2 second partition.
> One module file had changed; 400 bytes (not 4Kb) were replaced 
> with zeros.
> The time and the size of the modified module file were unchanged. 
> So I suspect of the GC when moving nodes or the buffer cache 
> (as you said).
> 
> All of this make me reinforce the idea that the problem has to 
> do with the GC
> with the "wear levelling", because I think that it is the only 
> one that can move nodes 
> of a file that never changes without modifying its time and size, 
> and with the correct CRC.

That's pure speculation. 

Check the captured debug messages. They contain the answer to your
question. It make take some time to figure it out, but you can
definitely find the place where the file is touched / modified / moved
whatever.

tglx






More information about the linux-mtd mailing list