<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hello all,</DIV>
<DIV> </DIV>
<DIV>Our system use JFFS2 on NAND flash, and code base is linux
2.6.10-rc3.</DIV>
<DIV>A few days ago, we dived into the JFFS2 for the CRC error after a
system reboot.</DIV>
<DIV>We found that it is caused by an incomplete writing and it
always happens in the end of file. </DIV>
<DIV>If we write some data into flash which size is not the multiple of
page_size (512-byte), </DIV>
<DIV>there is a remainder (under a page-size) in 'wbuf' of function
jffs2_flash_writev().</DIV>
<DIV>Then, at this time, we reset the system, JFFS2 will not yet write the
remainder into flash and it will cause the inode incomplete.</DIV>
<DIV>Is it normal ? What time will JFFS2 flush wbuf out to sync the
data if there is a remainder in wbuf ?</DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>I appreciate if anyone can give us some suggestion.</DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>best regards,</DIV>
<DIV>Chuck
Chen
</DIV></BODY></HTML>