]> bbs.cooldavid.org Git - net-next-2.6.git/commit
UBI: add write checking
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 Jan 2010 15:09:30 +0000 (17:09 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 1 Feb 2010 13:16:37 +0000 (15:16 +0200)
commit6e9065d756df5dac6dc02b94b82b4f5dbbf38caf
treeed2f34b18bb9c9af1b772e25127ec1ea1ce4f2cf
parentadbf05e3ec6ea380ba145b6fa89d9125ed76eb98
UBI: add write checking

Add an extra debugging check function which validates writes.
After every write it reads the data back, compares it with the
original data, and complains if they mismatch.

Useful for debugging. No-op if extra debugging checks are disabled.

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