Re: [PATCH/RFC] MTD: Striping layer core

Artem B. Bityutskiy
2006-04-02T12:34:51Z

On Fri, 2006-03-31 at 12:19 -0500, Nicolas Pitre wrote:
> So in the end the flash type is redundent and purely informational.

Imagine you're writing a cool flash file system. You want to optimize it
for Sibley NOR. According to my views, you may want to look at
mtd->type, figure out you are working with Sibley NOR, then start
directly talking to the Sybley support subsystem, and realize that
"buffer size". I mean not the minimal I/O size, but that "optimal" I/O
size you mentioned before. So, your file system may be cool and try to
do Input/Out in a more optimal way.

So, for this cool flash file system flash type is an important field.

Of course, you may also use the feature unit I offered. You may, do
things like

if (mtd_feature_available(mtd, MTD_FEATURE_SINGLE_BIT_IO))
etc.

My picture looks very shiny for me :-)

--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.