From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [84.204.75.148] (helo=shelob.oktetlabs.ru) by canuck.infradead.org with esmtps (Exim 4.52 #1 (Red Hat Linux)) id 1EFoVU-0000Fq-6v for linux-mtd@lists.infradead.org; Thu, 15 Sep 2005 03:51:26 -0400 Message-ID: <4329278E.50704@yandex.ru> Date: Thu, 15 Sep 2005 11:49:34 +0400 From: "Artem B. Bityuckiy" MIME-Version: 1.0 To: Peter Menzebach References: <432812E8.2030807@mw-itcon.de> <432817FF.10307@yandex.ru> <4329251C.7050102@mw-itcon.de> In-Reply-To: <4329251C.7050102@mw-itcon.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org Subject: Re: data loss on jffs2 filesystem on dataflash List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Peter Menzebach wrote: > Thanks for your help! > > I found (at least partly) out, whats happening: Some parts of code are > relying still on the assumption, that the erase size/sector size is > fixed to a power of 2. > > Example nodelist.c: > len = ofs & (c->wbuf_pagesize - 1) > Ah! What's your erasesize? I'll fix this. -- Best Regards, Artem B. Bityuckiy, St.-Petersburg, Russia.