data loss on jffs2 filesystem on dataflash

Artem B. Bityuckiy dedekind at yandex.ru
Thu Sep 15 03:48:30 EDT 2005


Peter Menzebach wrote:

[snip]
 > [42949498.320000] PM: dataflash_write: 1022208 .. 1030656
[snip]
> [42949495.640000] jffs2_write_dnode wrote node at 0x0000e770(2) with 
> dsize 0x4, csize 0x4, node_crc 0x33de5e85, data_crc 0x56bc8289, totlen 
> 0x00000048
JFFS2 writes a node at offset 0x0000e770.

[snip]
> [42949518.470000] PM: dataflash_write: 1022208 .. 1030656
[snip]
> [42949515.170000] Obsoleting node at 0x0000e770 of len 0x48: <7>Wasting
After the second echo, it obsolets the old data node.

[snip]
> [42949515.190000] jffs2_write_dnode wrote node at 0x0000e7fc(2) with 
> dsize 0x4, csize 0x4, node_crc 0x8f17e80f, data_crc 0x56bc8289, totlen 
> 0x00000048
And writes the new node at 0x0000e7fc

But your messages show that the write goes to the same place.

May be (guessing):
1. Your messages are invalid?
2. Something goes on with JFFS2 wbuf and it is committed to the same 
page (unlikely)?
3. Your flash driver is incorrect?

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.




More information about the linux-mtd mailing list