From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.233] helo=mgw-mx06.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LupBr-0007TC-4H for linux-mtd@lists.infradead.org; Fri, 17 Apr 2009 14:37:22 +0000 Subject: Re: UBIFS Corrupt during power failure From: Artem Bityutskiy To: Jamie Lokier In-Reply-To: <20090417135149.GA7129@shareable.org> References: <1239689500.3390.82.camel@localhost.localdomain> <20090414180010.GC32311@shareable.org> <1239775237.3390.144.camel@localhost.localdomain> <20090415160921.GA4325@shareable.org> <1239860798.3390.205.camel@localhost.localdomain> <20090416213400.GA10578@shareable.org> <1239958593.3390.293.camel@localhost.localdomain> <20090417135149.GA7129@shareable.org> Content-Type: text/plain; charset="UTF-8" Date: Fri, 17 Apr 2009 17:36:58 +0300 Message-Id: <1239979018.3390.298.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Urs Muff , Eric Holmberg , linux-mtd@lists.infradead.org, Adrian Hunter Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2009-04-17 at 14:51 +0100, Jamie Lokier wrote: > Artem Bityutskiy wrote: > > Jamie, thanks for feedback! > > Thanks for the new sections in the UBI FAQ! > > Yeah... > > > > > That makes the range of parallel writes, and so > > > corruption-on-power-loss, even larger than max(N * strip_size, N * > > > block_size). The range is as large as the whole write, if one chip > > > is writing much faster than the others, so it cannot be represented > > > by a small number. > > > > Then I guess we should just introduce mtd->max_corruption ? This would > > mean maximum amount of bytes corruption may span in vase of power cuts? > > With that name maybe whoever implements striping will remember think > about parallelism and limit it :-) > > /* Max size of corrupted block when a write command is interrupted > by reset or power failure. */ > u32 max_write_corruption; Yeah, let's wait for Eric's results and then will work on extending MTD device model with this parameter. -- Best regards, Artem Bityutskiy (Битюцкий Артём)