mtd_info/mtd_info_user>size wrong type

Josh Boyer jwboyer at gmail.com
Fri Apr 6 21:26:55 EDT 2007


On 4/6/07, Charles Manning <manningc2 at actrix.gen.nz> wrote:
> Folks
> As people are starting to use larger NAND partitions (4GB+), an inconsistency
> in the size field has become apparent.
>
> This is a unint32_t which is clearly too small for modern NAND arrays.

Yes, known issue.

> The read/write funcions use loff_t which is correct.
>
> It would seem that size needs to be increated to loff_t too.

Have you tried doing that?  I seem to recall hearing that it was a bit
more involved than just changing the size member to be 64 bit.

josh




More information about the linux-mtd mailing list