Hi Chris, On 3/22/07, Chris Paulson-Ellis wrote: > Hi, > > I've been looking at how yaffs2 interacts with the Linux MTD layer with > a view to implementing my own interface layer for a yaffs-direct based > bootloader I'm writing. > > I noticed that if the MTD layer finds and corrects ECC errors, then > nand_read will return -EUCLEAN rather than 0. Yaffs doesn't seem to > recognise this return code as "we had some problems, but fixed them", so > will regard these reads as failures. This will cause the block to be > prematurely marked bad. IMV, you're right with this analysis. YAFFS2 is not completely "new MTD layer ready", let's say so. The right thing to do here will be move the data from this block to a free one and mark this one for retirement. Agree?