diff options
author | Kurt Hackel <kurt.hackel@oracle.com> | 2006-05-01 14:15:04 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-26 17:42:59 -0400 |
commit | 343e26a4007d14c2154c1d13d1209797dce5c535 (patch) | |
tree | 3b83264cc38dbd3151a80704db4c0ecda4c5cf6b /fs/ocfs2 | |
parent | 466d1a4591c4e1bc3affd5c0cf3df5ad20338fb9 (diff) |
ocfs2: dump mismatching migrated lvbs before BUG()
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/dlm/dlmrecovery.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index 19123ce8b306..de68e498bfad 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c | |||
@@ -1689,8 +1689,19 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm, | |||
1689 | if (!dlm_lvb_is_empty(res->lvb) && | 1689 | if (!dlm_lvb_is_empty(res->lvb) && |
1690 | (ml->type == LKM_EXMODE || | 1690 | (ml->type == LKM_EXMODE || |
1691 | memcmp(res->lvb, mres->lvb, DLM_LVB_LEN))) { | 1691 | memcmp(res->lvb, mres->lvb, DLM_LVB_LEN))) { |
1692 | mlog(ML_ERROR, "received bad lvb!\n"); | 1692 | int i; |
1693 | __dlm_print_one_lock_resource(res); | 1693 | mlog(ML_ERROR, "%s:%.*s: received bad " |
1694 | "lvb! type=%d\n", dlm->name, | ||
1695 | res->lockname.len, | ||
1696 | res->lockname.name, ml->type); | ||
1697 | printk("lockres lvb=["); | ||
1698 | for (i=0; i<DLM_LVB_LEN; i++) | ||
1699 | printk("%02x", res->lvb[i]); | ||
1700 | printk("]\nmigrated lvb=["); | ||
1701 | for (i=0; i<DLM_LVB_LEN; i++) | ||
1702 | printk("%02x", mres->lvb[i]); | ||
1703 | printk("]\n"); | ||
1704 | dlm_print_one_lock_resource(res); | ||
1694 | BUG(); | 1705 | BUG(); |
1695 | } | 1706 | } |
1696 | memcpy(res->lvb, mres->lvb, DLM_LVB_LEN); | 1707 | memcpy(res->lvb, mres->lvb, DLM_LVB_LEN); |