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: v2.6.32-rc1~620^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a406856ea6830d8b8dba6a27d9f9331c5f4c13a;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