[Ocfs2-tools-devel] [PATCH] debugfs.ocfs2: fix the endian error in
find_block_inode
tao.ma
tao.ma at oracle.com
Fri Apr 27 23:22:23 PDT 2007
Function find_block_inode forget to swap the information from disk to
cpu. This may cause problem in some big-endian machine.
-------------- next part --------------
Index: debugfs.ocfs2/find_block_inode.c
===================================================================
--- debugfs.ocfs2/find_block_inode.c (revision 1346)
+++ debugfs.ocfs2/find_block_inode.c (working copy)
@@ -368,6 +368,8 @@ errcode_t find_block_inode(ocfs2_filesys
strlen(OCFS2_INODE_SIGNATURE)))
continue;
+ ocfs2_swap_inode_to_cpu(di);
+
if (!(di->i_flags & OCFS2_VALID_FL))
continue;
More information about the Ocfs2-tools-devel
mailing list