[Ocfs2-commits] smushran commits r2997 - branches/ocfs2-1.2/fs/ocfs2/dlm

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Mar 26 13:35:27 PDT 2007


Author: smushran
Date: 2007-03-26 13:35:26 -0700 (Mon, 26 Mar 2007)
New Revision: 2997

Modified:
   branches/ocfs2-1.2/fs/ocfs2/dlm/dlmdebug.c
Log:
ocfs2_dlm: Prints dlm domain key in proc output

The dlm creates a key based on the domain name and uses that when
communicating with other nodes. This patch allows us to print the
key of all active dlm domains. This information is useful in debugging.

Signed-off-by: mfasheh

Modified: branches/ocfs2-1.2/fs/ocfs2/dlm/dlmdebug.c
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/dlm/dlmdebug.c	2007-03-26 20:33:37 UTC (rev 2996)
+++ branches/ocfs2-1.2/fs/ocfs2/dlm/dlmdebug.c	2007-03-26 20:35:26 UTC (rev 2997)
@@ -153,10 +153,11 @@
 	int len;
 	struct dlm_ctxt *dlm = data;
 
-	len = sprintf(page, "local=%d, remote=%d, unknown=%d\n",
+	len = sprintf(page, "local=%d, remote=%d, unknown=%d, key=0x%08x\n",
 		      atomic_read(&dlm->local_resources),
 		      atomic_read(&dlm->remote_resources),
-		      atomic_read(&dlm->unknown_resources));
+		      atomic_read(&dlm->unknown_resources),
+		      dlm->key);
 
 	if (len <= off + count)
 		*eof = 1;




More information about the Ocfs2-commits mailing list