Hi Lists,
 
in the function yaffs_ReadChunkFromNAND(), you do
if (eccResult1 || eccResult2) {
    yaffs_HandleReadDataError(dev, chunkInNAND);
}
does this means if the data save in chunk did't write correct, Yaffs2 will retire the block?
but we can't ensure whether the block is really broken. and this operation may cause the flash space missing.(ie. power failure when writing data to the chunk, data not write correct and spare data are all 0xff)
 
i have do a test to simulate the random power failure during data writing. the result of the test is Yaffs2's free space become less and less. 

does this a bug of Yaffs2, and how to fixed it.thanks.
 
 
 
Best Regards,
And Merry Christmas for everybody!
 
by linuxsir.h
2009.12.23