oobavail issues

Matthew Reimer mreimer at vpop.net
Thu Mar 31 13:29:46 EST 2005


On Thursday 31 March 2005 11:20 am, Thomas Gleixner wrote:
> On Thu, 2005-03-31 at 09:29 -0800, Matthew Reimer wrote:
> > I'm not sure what is the correct fix--calculate oobavail differently, or
> > to change the loop condition in nand_prepare_oobbuf, or to require
> > nand_oobinfo.oobfree to cover every OOB byte. We just copied from the
> > s3c2410.c, assuming it was correct.
>
> I will fix this. But I still wonder why you hit this problem with JFFS2.
> JFFS2 does not provide a filesystem buffer for oob data, so the memcpy
> in nand_prepare_oobbuf is never invoked.

IIRC it wasn't jffs2 but the MTD_WRITEECC() we were doing to write a kernel to 
a partition, which we had to do in preparation for mounting jffs2. Sorry for 
the confusion.

Matt




More information about the linux-mtd mailing list