Skip to content
Commit 270737ac authored by Michael Brandt's avatar Michael Brandt Committed by Wolfgang Denk
Browse files

EXT2FS: fix inode size for ext2fs rev#0



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"; on PowerPC "ext2ls" will
print nothing.
This fix checks for rev 0 and uses then 128 bytes as inode size.

Signed-off-by: default avatarMichael Brandt <Michael.Brandt@emsyso.de>
Tested on: TQM5200S
Tested-by: default avatarWolfgang Denk <wd@denx.de>
Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent bcb324d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment