[PATCH 3/8] mtd-utils: Add flash torture test utility

David Oberhollenzer david.oberhollenzer at sigma-star.at
Wed Apr 27 02:28:57 PDT 2016


On 04/26/2016 04:34 PM, Ezequiel Garcia wrote:
> mtd_torture seems to print its own message when the torture fails:
> 
> normsg("PEB %d passed torture test, do not mark it a bad", eb);
> 
> Isn't confusing to print "do not mark it a bad" (sic) in the torture test?
> I mean: this would imply that the test would mark as bad if the torture fails?
> 
Presumably mtd_torture was specifically written for ubiformat or moved over from
the ubiformat utility to libmtd, judging from the kind of diagnostics it generates
on its own.

It would probably be better to move these kinds of those diagnostics back/over to
ubiformat that uses the function to determine if it should mark a block as bad.


David




More information about the linux-mtd mailing list