[Ocfs2-commits] mfasheh commits r1861 - trunk/fs/ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Jan 27 21:04:30 CST 2005
Author: mfasheh
Date: 2005-01-27 21:04:28 -0600 (Thu, 27 Jan 2005)
New Revision: 1861
Modified:
trunk/fs/ocfs2/dlmglue.c
Log:
* use a new method for computing domain key
Modified: trunk/fs/ocfs2/dlmglue.c
===================================================================
--- trunk/fs/ocfs2/dlmglue.c 2005-01-28 02:24:43 UTC (rev 1860)
+++ trunk/fs/ocfs2/dlmglue.c 2005-01-28 03:04:28 UTC (rev 1861)
@@ -30,6 +30,7 @@
#include <linux/highmem.h>
#include <linux/mm.h>
#include <linux/smp_lock.h>
+#include <linux/crc32.h>
#include <cluster/util.h>
#include <cluster/clcommon.h>
@@ -1488,9 +1489,8 @@
wait_for_completion(&osb->vote_event_init);
/* used by the dlm code to make message headers unique, each
- * node in this domain must agree on this. For now we'll just
- * yank that off uuid. */
- memcpy(&dlm_key, osb->uuid, sizeof(dlm_key));
+ * node in this domain must agree on this. */
+ dlm_key = crc32(0, osb->group_name, strlen(osb->group_name));
/* for now, group_name == domain */
dlm = dlm_register_domain(osb->group_name, osb->group_name, dlm_key);
More information about the Ocfs2-commits
mailing list