[Ocfs2-commits] jlbec commits r2373 - trunk/fs/ocfs2/dlm

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Jun 6 22:38:31 CDT 2005


Author: jlbec
Signed-off-by: mfasheh
Date: 2005-06-06 22:38:29 -0500 (Mon, 06 Jun 2005)
New Revision: 2373

Modified:
   trunk/fs/ocfs2/dlm/dlmdomain.c
Log:

o Compare bytes to bytes, not bytes to longs.

Signed-off-by: mfasheh



Modified: trunk/fs/ocfs2/dlm/dlmdomain.c
===================================================================
--- trunk/fs/ocfs2/dlm/dlmdomain.c	2005-06-07 00:46:58 UTC (rev 2372)
+++ trunk/fs/ocfs2/dlm/dlmdomain.c	2005-06-07 03:38:29 UTC (rev 2373)
@@ -675,8 +675,13 @@
 	int status, tmpstat;
 	unsigned int node;
 
-	if (map_size != BITS_TO_LONGS(O2NM_MAX_NODES))
+	if (map_size != (BITS_TO_LONGS(O2NM_MAX_NODES) *
+			 sizeof(unsigned long))) {
+		mlog(ML_ERROR,
+		     "map_size %u != BITS_TO_LONGS(O2NM_MAX_NOES) %u\n",
+		     map_size, BITS_TO_LONGS(O2NM_MAX_NODES));
 		return -EINVAL;
+	}
 
 	status = 0;
 	node = -1;
@@ -694,6 +699,8 @@
 		}
 	}
 
+	if (status)
+		mlog_errno(status);
 	return status;
 }
 



More information about the Ocfs2-commits mailing list