]> bbs.cooldavid.org Git - net-next-2.6.git/commit
UBI: add empty eraseblocks verification
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 28 Jun 2009 16:16:55 +0000 (19:16 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 5 Jul 2009 15:47:03 +0000 (18:47 +0300)
commit40a71a87fa8e0cb3ec0fca4d152263734b203eb2
tree8bdd27304fc4d28c850c76f2b1f4a32c802612f8
parent8e4a718ff38d8539938ec3421935904c27e00c39
UBI: add empty eraseblocks verification

This patch adds code which makes sure eraseblocks contain all 0xFF
bytes before starting using them. The verification is done only when
debugging checks are enabled.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/debug.h
drivers/mtd/ubi/io.c
drivers/mtd/ubi/wl.c