[U-Boot] [PATCH] EXT2FS: fix inode size for ext2fs rev#0

Dan Christensen
2009-11-25T02:53:53Z

I tested this patch and it resolved the problems I was having with
EXT2 filesystems on my SD card.

On Sun, Nov 22, 2009 at 7:13 AM, Michael Brandt
<Michael.Brandt@emsyso.de> wrote:
> From: Michael Brandt <Michael.Brandt@emsyso.de>
>
> extfs.c assumes that there is always a valid inode_size field in the
> superblock. But this is not true for ext2fs rev 0. Such ext2fs images are for
> instance generated by genext2fs. Symptoms on ARM machines are messages like:
> "raise: Signal # 8 caught"
> This fix checks for rev 0 and uses then 128 bytes as inode size.
>
> Signed-off-by: Michael Brandt <Michael.Brandt@emsyso.de>

Thanks!
Dan