[Ocfs2-tools-commits] zab commits r1024 - branches/endian-safe/libocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Aug 4 18:25:10 CDT 2005


Author: zab
Date: 2005-08-04 18:25:09 -0500 (Thu, 04 Aug 2005)
New Revision: 1024

Modified:
   branches/endian-safe/libocfs2/openfs.c
Log:
o can't use ocfs2_read_inode to read the super block because it relies on 
  fs fields that the super block reading path is initializing


Modified: branches/endian-safe/libocfs2/openfs.c
===================================================================
--- branches/endian-safe/libocfs2/openfs.c	2005-08-04 23:13:51 UTC (rev 1023)
+++ branches/endian-safe/libocfs2/openfs.c	2005-08-04 23:25:09 UTC (rev 1024)
@@ -81,7 +81,7 @@
 	if (ret)
 		return ret;
 
-	ret = ocfs2_read_inode(fs, superblock, blk);
+	ret = io_read_block(fs->fs_io, superblock, 1, blk);
 	if (ret)
 		goto out_blk;
 	di = (ocfs2_dinode *)blk;
@@ -91,6 +91,7 @@
 		   strlen(OCFS2_SUPER_BLOCK_SIGNATURE)))
 		goto out_blk;
 
+	ocfs2_swap_inode(di);
 	fs->fs_super = di;
 
 	return 0;



More information about the Ocfs2-tools-commits mailing list