jffs2: filesystem corruption caused by writing and powercycle
Quoted 11 lines
I have a problem with jffs2 filesystem corruption. My environment is kernel 2.6.23.4, running on PPC. Flash is Spansion 29GL512 NOR-Flash.
The problem can be reproduced simply by turning off power while writing.
After 3 or 4 powercycles I get errormessages when trying to copy the file I wrote before turning off power:/ # cp /data/tst /data/tst2
Data CRCee9173b1!= calculated CRC6af6806dfor node at0221f108
cp: read error: Input/output error
/ #
The problem is solved by patch
"[JFFS2] Fix data CRC checking on NOR flash."
from David Woodhouse, 21 Nov 2007.
Cheers
Dirk