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

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Aug 9 13:34:08 CDT 2005


Author: zab
Date: 2005-08-09 13:34:07 -0500 (Tue, 09 Aug 2005)
New Revision: 1033

Modified:
   branches/endian-safe/libocfs2/checkhb.c
Log:
o swap the slot map in libocfs2


Modified: branches/endian-safe/libocfs2/checkhb.c
===================================================================
--- branches/endian-safe/libocfs2/checkhb.c	2005-08-09 01:19:49 UTC (rev 1032)
+++ branches/endian-safe/libocfs2/checkhb.c	2005-08-09 18:34:07 UTC (rev 1033)
@@ -63,8 +63,8 @@
 	if (!ret) {
 		slots = (int16_t *)slotbuf;
 		for (i = 0, j = 0; i < num_nodes; ++i)
-			if (slots[i] != -1)
-				node_nums[j++] = (uint8_t)slots[i];
+			if (le16_to_cpu(slots[i]) != (uint16_t)OCFS2_INVALID_SLOT)
+				node_nums[j++] = le16_to_cpu(slots[i]);
 	}
 
 	if (slotbuf)



More information about the Ocfs2-tools-commits mailing list