Files
ubports_kernel_google_msm/drivers/mtd/ubi
Artem Bityutskiy 0798cea8c2 UBI: improve corrupted flash handling
This patch improves the way UBI handles corrupted flash, or flash
containing garbage or non-UBI data, which is the same from UBI POW.
Namely, we do the following:

* if 5% or more PEBs are corrupted, refuse the flash
* if less than 5% PEBs are corrupted, do not refuse the flash
  and format these PEBs
* if less than 8 PEBs are corrupted, format them silently, otherwise
  print a warning message.

Reported-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Tested-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
2010-06-04 11:30:44 +03:00
..
2010-05-27 22:05:02 -04:00
2009-08-14 20:02:20 +03:00
2010-02-01 15:16:37 +02:00
2010-06-04 11:30:42 +03:00
2010-06-04 11:30:42 +03:00
2010-05-07 08:33:10 +03:00
2010-05-07 08:33:10 +03:00
2009-01-27 16:54:41 +02:00
2009-06-03 17:45:23 +03:00
2010-06-04 11:30:44 +03:00
2010-06-04 11:30:42 +03:00
2010-01-18 18:53:56 +02:00
2010-05-07 08:33:32 +03:00
2010-05-07 08:33:10 +03:00