[PATCH V2] UBI: power cut emulation for testing

Richard Weinberger richard at nod.at
Sun Apr 5 13:34:02 PDT 2015


Am 05.04.2015 um 22:25 schrieb Pavel Machek:
> I guess so. So maybe warning in the documentation somewhere that real
> hardware is nastier than designed-to-be-nasty emulation would be
> nice..?

Yeah, that's a good idea. David, can you please create a patch
against mtd-www.git?
Please also cover the existing powercut emulation of UBIFS.

The reason why David added emulation for UBI was to stress-test
UBI fastmap. The crucial operation of UBI changing the mapping between
LEB and PEBs. This is why this emulation intercepts writes to the UBI
VID header. For the sake of completeness interception of EC writes
is also possible.

Thanks,
//richard



More information about the linux-mtd mailing list