[PATCH v2] mtd: torturetest: add the support for random data pattern

Huang Shijie b32955 at freescale.com
Sun Mar 3 21:29:40 EST 2013


于 2013年03月02日 22:44, Artem Bityutskiy 写道:
> On Sat, 2013-02-16 at 12:00 +0800, Huang Shijie wrote:
>> On Wed, Feb 13, 2013 at 6:37 PM, Artem Bityutskiy<dedekind1 at gmail.com>  wrote:
>>> On Tue, 2013-02-05 at 16:21 +0800, Huang Shijie wrote:
>>>> Add a new module parameter 'pattern'. The meaning of the pattern is:
>>>>    (1) pattern == 0 for 55/AA pattern.
>>>>    (2) pattern<  0 for random pattern.
>>>>    (3) pattern>  0 for random pattern too, the value of the pattern is used
>>>>        as the seed for the random generator.
>>> Please, do not add parameters, make it simple - teach the test to use
>>> both the old patterns plus additional cycles with random patterns.
>> but if we do not add new parameter, how can we create a random seed?
> Unless you have a real practical reason to let users pass the initial
> random seed, do not do this.
>
ok. got it.

thanks
Huang Shijie





More information about the linux-mtd mailing list