From: Artem Bityutskiy Date: Sun, 19 Jul 2009 11:33:14 +0000 (+0300) Subject: UBI: print a warning if too many PEBs are corrupted X-Git-Tag: Release-2010-05/1~3^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=668300b1b877872a54079d0eb02b60d34d6464d6;p=pandora-kernel.git UBI: print a warning if too many PEBs are corrupted There was a bug report recently where UBI prints: UBI error: ubi_attach_mtd_dev: failed to attach by scanning, error -22 error messages and refuses to attach a PEB. It turned out to be a buggy flash driver which returned garbage to almost every UBI read. This patch makes UBI print a better message in such cases. Namely, if UBI finds 8 or more corrupted PEBs, it prints a warning and lists the corrupted PEBs. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed