Some news for this: [PATCH] [MTD] BLOCK_RO: Readonly Block Device Layer Over MTD ?

Artem Bityutskiy dedekind at infradead.org
Fri Nov 23 03:18:24 EST 2007


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 if 
> some intermediate layer is used like UBI, by that layer. As far as I know 
> 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.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list