UBIFS recovery fails
Ivan Djelic
ivan.djelic at parrot.com
Tue Oct 18 11:32:36 EDT 2011
On Tue, Oct 18, 2011 at 04:10:32PM +0100, Jean-Sébastien Gagnon wrote:
> The situation you described should be already handled correctly by UBIFS, if the nand driver is correctly reporting pages with bitflips with the -EUNCLEAN. In this case, UBI will move the PEB to a new one as soon as possible to avoid this problem.
This would be true, if you could assume that a page reading failure always
occurs after a previous read on the same page reports an ecc correction.
But this is not the case: we had several unstable pages going from 0 bitflips
(perfect read) to 2 bitflips (failed read). No way to detect any failure, no
way to scrub data before it's too late.
And the answer from the manufacturer was: you should not use any partially
programmed/erased pages anyway, those should be cleaned up after recovering
from a power failure.
> My comment was really about the original error posted by Daniel Kuhn :
I agree on your comment about blank page; bitflips on erased space should be
corrected, or the upper layers should be robust to them...
BR,
--
Ivan
More information about the linux-mtd
mailing list