[Ocfs2-tools-devel] [PATCH 2/8] odump.py: fix dlm_query_join_request message handler
Jeff Liu
jeff.liu at oracle.com
Thu Aug 20 08:23:45 PDT 2009
extract inode_index/domain from the query_join_request message, format them as following,
_RQ_ [QRYJ] K=0x666c6172 I=7 D=A898D073F6244E9EBEB057B4F47EF61A
Signed-off-by: Jeff Liu <jeff.liu at oracle.com>
---
ADDONS/odump.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ADDONS/odump.py b/ADDONS/odump.py
index 5120a6b..420011a 100755
--- a/ADDONS/odump.py
+++ b/ADDONS/odump.py
@@ -417,15 +417,21 @@ def ProxyASTMsg(odict, dumplvb, fmtstr=COOKIE_FMT + FLAGS_FMT + NODEIDX_FMT + BL
return fmtstr % (cookie, flags, nodeidx, blktype, name)
# node_idx name_len domain
-def QueryJoinRequestMsg(odict, fmtstr=NODEIDX_FMT):
+DOMAIN_FMT='D=%s '
+def QueryJoinMsg(odict, fmtstr=NODEIDX_FMT + DOMAIN_FMT):
''' node_idx '''
+
if odict.has_key('Node Index'):
nodeidx = odict['Node Index'][0].strip()
else:
nodeidx = ' '
- str = fmtstr % nodeidx
+ if odict.has_key('Domain Name'):
+ domain = odict['Domain Name'][0].strip()
+ else:
+ domain = ' '
+ str = fmtstr % (nodeidx, domain)
return str
def ExitDomainMsg(odict, fmtstr=NODEIDX_FMT):
--
1.5.4.3
More information about the Ocfs2-tools-devel
mailing list