
Dear unsik Kim,
In message 57afda040901292227w20b54389rdf088960c1c9a6b1@mail.gmail.com you wrote:
Hello, all?
Currently ext2ls, ext2load not working (I think sometimes it will work.) The reason is incorrect operations of ext2fs_read_inode and ext2fs_blockgroup.
I fix miscalculated block number(blkno) and offset (blkoff), and some hard coded values.
Hm.... I tried the current code without your patch but I could not find any error case.
But with your patch applied, I got this:
=> ext2ls ide 0:4 bin ** ext2fs_devread() read outside partition sector 536870912 Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - ide 0:4 **
I tested this on a PowerPC system (big endian). Any chance there might be some endianess issues with your patch?
Best regards,
Wolfgang Denk