[Ocfs2-tools-devel] debugfs.ocfs2 dump_inode() broken for s390x

Goldwyn Rodrigues rgoldwyn at gmail.com
Tue Jul 5 14:52:20 PDT 2011


Hi,

This is the same problem when the user experiences **FAILED CHECKSUM**
while using debugfs.ocfs2. The problem is not limited to super_block but
is encountered with any inode.

The problem is in do_stat or do_stats. The inode is read and then the
data's CRC is checked. However, ocfs2_block_check_validate() requires
the data to be in little-endian format. In case of s390x, because of the
previous inode reads, the data is already in CPU or big-endian format,
and hence results in incorrect CRC computation.

Please fix, or advise a good method to fix.

-- 
Goldwyn



More information about the Ocfs2-tools-devel mailing list