Received: from 213-239-205-147.clients.your-server.de ([213.239.205.147] helo=mail.tglx.de) by canuck.infradead.org with esmtp (Exim 4.43 #1 (Red Hat Linux)) id 1DH4HM-0005kh-75 for linux-mtd@lists.infradead.org; Thu, 31 Mar 2005 13:20:28 -0500 From: Thomas Gleixner To: Matthew Reimer In-Reply-To: <200503310929.59763.mreimer@vpop.net> References: <424B4FFA.7050906@joshuawise.com> <1112269966.4228.68.camel@tglx.tec.linutronix.de> <200503310929.59763.mreimer@vpop.net> Content-Type: text/plain Date: Thu, 31 Mar 2005 21:20:29 +0200 Message-Id: <1112296829.4228.75.camel@tglx.tec.linutronix.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org Subject: Re: oobavail issues Reply-To: tglx@linutronix.de List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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. tglx