lseek32 and lseek64

Richard Genoud richard.genoud at gmail.com
Mon Sep 10 06:31:23 EDT 2012


[forwarding to linux-mtd ML]
2012/9/10 Cheney Chen <cheneychencl2012 at gmail.com>:
> Dear Richard,
>
> I'm a developer on android os. I porting the MTD utility into android os and
> I find one bug for 8GB nand flash:
>
> # ./ubiformat /dev/ubi0_0
>
> If ubi0_0 offset is larger than 4GB, this partition can't be formatted.
> Finally I found that the 32bit lseek function cause this issue in
> mtd-utility. Becuase the linux kernel 3.0.8 can support the 64bit lseek.
>

Hi,
AFAIK, ubiformat is used on mtd devices (ubiformat /dev/mtd0) not on
ubi volumes.
are you sure it's the command you used ?



More information about the linux-mtd mailing list