]> www.infradead.org Git - mtd-utils.git/commit
ubiformat: torture eraseblocks on write errors
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Jul 2009 12:40:32 +0000 (15:40 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Jul 2009 12:40:32 +0000 (15:40 +0300)
commit6624ef2ba2e9687929c53fe838910786270cd5c9
tree28514674f90840ab2614c728b1d51699db2fdb8d
parent5cf9d3cf66dd32bd5a348e0e9805c5d7a3c34573
ubiformat: torture eraseblocks on write errors

When fail to write to PEBs, and the error is EIO, torture the
PEB before marking it as bad. Basically, the code is copied
from the kernel UBI.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/include/libmtd.h
ubi-utils/src/libmtd.c
ubi-utils/src/ubiformat.c