From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1OOm3o-0004tX-2N for linux-mtd@lists.infradead.org; Wed, 16 Jun 2010 06:25:16 +0000 Subject: Re: [PATCH] UBI: fix delete compatible internal volume scan From: Artem Bityutskiy To: Brijesh Singh In-Reply-To: <1274595417.8881.36.camel@localhost.localdomain> References: <1274595417.8881.36.camel@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" Date: Wed, 16 Jun 2010 09:22:37 +0300 Message-ID: <1276669357.19028.280.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2010-05-23 at 09:16 +0300, Artem Bityutskiy wrote: > On Tue, 2010-05-18 at 23:10 +0530, Brijesh Singh wrote: > > This patch resolves a possible bug. Scan is adding delete compatible > > blocks to both corr list and used list. > > It should return after adding the block to corr list. > > > > Signed-off-by: Brijesh Singh > > I'm not sure this patch is enough. I think we should add a 'compat' flag > to the 'struct ubi_mkvol_req' structure, to make it possible to create > volumes with different compatibility flags. Then we need to write a test > and add it to the UBI test-suite at 'mtd-utils/tests/ubi-tests/'. Ok, that was nonsense. First of all, compatibility flags are applicable only for internal volumes, and we do not want to allow users creating internal volumes, even for testing. Secondly, your patch is right. Thirdly, even without your patch everything works just fine, because even though we also add this PEB to the used tree, we'll never ever use it, so it will not cause problems. Thus, I'll just apply your patch, thank you. > Then once we have tested and fixed this, we should merge this and also > send to the '-stable' trees. And not need to send it to '-stable'. > I remember I did give the compat option a test, but probably not that > good. They actually seem to work fine. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)