From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([131.228.20.172] helo=mgw-ext13.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1IvTkI-0004Xu-Vy for linux-mtd@lists.infradead.org; Fri, 23 Nov 2007 03:18:49 -0500 Subject: Re: Some news for this: [PATCH] [MTD] BLOCK_RO: Readonly Block Device Layer Over MTD ? From: Artem Bityutskiy To: Ricard Wanderlof In-Reply-To: References: <305035a40711210627p1ea1f2c0me1ee1f8e8d124552@mail.gmail.com> <20071121160804.GC20871@lazybastard.org> <305035a40711210828k65174f44t3d64e9ee33fe26bf@mail.gmail.com> <20071121105817.3adbfbb5@weaponx> <20071121213257.GI20871@lazybastard.org> <305035a40711211433x9054a11r11636ad708a325cd@mail.gmail.com> <20071121225425.GA24327@lazybastard.org> <20071122132650.GA27525@lazybastard.org> Content-Type: text/plain; charset=utf-8 Date: Fri, 23 Nov 2007 10:18:24 +0200 Message-Id: <1195805904.3231.87.camel@sauron> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: =?ISO-8859-1?Q?J=F6rn?= Engel , Linux mtd Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Ricard, On Fri, 2007-11-23 at 08:42 +0100, Ricard Wanderlof wrote: > In the case of mtd, it would seem that this should be done by JFFS2, or i= f=20 > some intermediate layer is used like UBI, by that layer. As far as I know= =20 > though, currently no scrubbing is done by either? Nope, scrubbing was one of the design goals of UBI and it does do it. If mtd_read() returns -EUCLEAN, which means a correctable ECC error occurred (bit-flip), UBI schedules this physical eraseblock for movement. Then it moves it in background, re-maps corresponding logical eraseblock to the new physical eraseblock, and schedules the old physical eraseblock for erasure. --=20 Best regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC)