From: Artem Bityutskiy Date: Fri, 5 Jun 2009 16:41:47 +0000 (+0300) Subject: ubiformat: add a TODO entry X-Git-Tag: v1.3.0~38 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bb56df1e1a84304ec4a14169e4cdc41116ed4256;p=mtd-utils.git ubiformat: add a TODO entry Signed-off-by: Artem Bityutskiy --- diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index b9d3f79..a3df281 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -392,6 +392,7 @@ static int consecutive_bad_check(int eb) return 0; } +/* TODO: we should actually torture the PEB before marking it as bad */ static int mark_bad(const struct mtd_dev_info *mtd, struct ubi_scan_info *si, int eb) { int err; @@ -529,7 +530,6 @@ static int flash_image(const struct mtd_dev_info *mtd, struct ubi_scan_info *si) if (errno != EIO) goto out_close; - if (mark_bad(mtd, si, eb)) { normsg("operation incomplete"); goto out_close;