public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* CRC error of jffs2_get_inode_nodes() for JFFS2 on NAND
@ 2005-11-08  8:36 陳羿逞 \(Chuck\)
  2005-11-13 13:09 ` Artem B. Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: 陳羿逞 \(Chuck\) @ 2005-11-08  8:36 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

Hello all,

Our system use JFFS2 on NAND flash, and code base is linux 2.6.10-rc3.
A few days ago, we dived into the JFFS2 for the CRC error after a system reboot.
We found that it is caused by an incomplete writing and it always happens in the end of file. 
If we write some data into flash which size is not the multiple of page_size (512-byte), 
there is a remainder (under a page-size) in 'wbuf' of function jffs2_flash_writev().
Then, at this time, we reset the system, JFFS2 will not yet write the remainder into flash and it will cause the inode incomplete.
Is it normal ? What time will JFFS2 flush wbuf out to sync the data if there is a remainder in wbuf ?

I appreciate if anyone can give us some suggestion.

best regards,
Chuck Chen                                                                                                                        

[-- Attachment #2: Type: text/html, Size: 2008 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-14  9:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-08  8:36 CRC error of jffs2_get_inode_nodes() for JFFS2 on NAND 陳羿逞 \(Chuck\)
2005-11-13 13:09 ` Artem B. Bityutskiy
2005-11-14  6:26   ` 陳羿逞 \(Chuck\)
2005-11-14  9:43     ` Artem B. Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox