UBIFS Corrupt during power failure

Artem Bityutskiy dedekind at infradead.org
Thu Jul 16 03:16:59 EDT 2009


On Wed, 2009-07-15 at 15:36 -0600, Eric Holmberg wrote:
> indeterminate state for the entire PEB.  Writing all zero's to the
> header as in Artem's fix should work in all cases excluding the
> extremely rare cases where a write of 0's is interrupted and the header
> has been changed to a valid value and in the case where an erase
> (0-to-1) transition is interrupted which results in a valid header.  The
> odds against that are huge, so I would expect the flash to wear out
> before it ever happens in real life.

Hmm, we can zero out both headers completely by writing 128 bytes,
even.

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




More information about the linux-mtd mailing list