From: Artem Bityutskiy Date: Fri, 30 Apr 2010 10:02:33 +0000 (+0300) Subject: UBI: improve corrupted flash handling X-Git-Tag: v2.6.36-rc1~586^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0798cea8c2e1afee59686c51d27d0e96b05e42d1;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy Reviewed-by: Sebastian Andrzej Siewior Tested-by: Sebastian Andrzej Siewior --- Reading git-diff-tree failed