From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PO9gJ-0002kV-6S for linux-mtd@lists.infradead.org; Thu, 02 Dec 2010 13:58:44 +0000 Received: by bwz5 with SMTP id 5so7537329bwz.36 for ; Thu, 02 Dec 2010 05:58:31 -0800 (PST) Subject: Re: UBIFS partition on NOR flash not mountable after power cut test From: Artem Bityutskiy To: Anatolij Gustschin In-Reply-To: <20101202145027.266b30a6@wker> References: <20101129195014.19224240@wker> <20101201130534.5b95ce83@wker> <20101201164447.2215bc58@wker> <1291264926.14534.32.camel@koala> <20101202105729.04c25fc1@wker> <1291292325.2526.23.camel@localhost> <20101202142351.197abbde@wker> <1291296951.2526.34.camel@localhost> <20101202145027.266b30a6@wker> Content-Type: text/plain; charset="UTF-8" Date: Thu, 02 Dec 2010 15:57:56 +0200 Message-ID: <1291298276.2526.44.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org, Detlev Zundel Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2010-12-02 at 14:50 +0100, Anatolij Gustschin wrote: > > Can you instead make mtd->writesize to be 64? This is much closer to the > > "right thing to do" :-) > > Yes. But I also must ensure that the buffer size configured in > cfi->cfiq->MaxBufWriteSize is actually used by the driver. This > is not the case, it seems. If this is true, then I'll still run > into the similar trouble even when using 64 for max_io_size in UBI. Err, no, I think if the UBI/UBIFS min_io_size is greater than the real write size, it should be fine for UBI/UBIFS. UBIFS should not get upset if min_io_size is 64, but real write size is 8 or 16 or 32, or even 1 byte, I think. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)