Re: [PATCH/RFC] Linux MTD striping middle layer

Alexander Belyakov
2006-03-22T15:11:44Z

Artem B. Bityutskiy wrote:
>> Anyway interleaving algorithm itself makes no assumptions about number
>> of subdevices. So code in the patch can be used to stripe 3, 5, etc
>> devices. Just remove or replace alignment checks from stripe_erase()
>> routine. It should work.
>>
> Ok, then don't write in documentation that it is possible to stripe only
> 2,4,8... flashes as this restriction is insane. Or write there, that if
> you have a broken application, don't do 3-flash striping.
>
> You support really exotic things like striping flashes with different
> eraseblock size which I fear nobody will ever use, but you prohibit
> 3-chip striping which is much more useful.
As I said you can stripe non-power-of-two number of devices. But in that
case you should always remember that someone even inside MTD code can
try to make alignment check or something else that will fail.

In original message I just point the safe usage case. Sorry for causing
that misunderstanding.

Thanks,
Alexander Belyakov