diff options
Diffstat (limited to 'fs')
-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); |