[U-Boot] [PATCH] Fix block device accesses beyond 2TiB

Frédéric Leroy
2013-06-24T09:46:46Z

Le 22/06/2013 17:31, Albert ARIBAUD a ?crit :
> Hi Fr?d?ric,
>
> > However, the patch issues no warning at compile time and fixes the ide
> > block layer.
>
> OK -- anyone has any idea why Sasha's patch fixes reading from "far"
> blocks but does not fix ex2ls? Frankly, I'd prefer it if the patch
> fixed it all. :)

I did a quick look.
Ext2 code use "unsigned long" for the partition offset and "int" for
sector computation.
I will try to fix it, and try to test the other fs ( ext4, xfs, fat).
I would see one patch for the ide code, and one or more patch for the fs
code.
IMHO, Sascha patch can be applied as.

Regards,

--
Frederic Leroy