mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
466d1a4591
commit
343e26a400
1 changed files with 13 additions and 2 deletions
|
@ -1689,8 +1689,19 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm,
|
|||
if (!dlm_lvb_is_empty(res->lvb) &&
|
||||
(ml->type == LKM_EXMODE ||
|
||||
memcmp(res->lvb, mres->lvb, DLM_LVB_LEN))) {
|
||||
mlog(ML_ERROR, "received bad lvb!\n");
|
||||
__dlm_print_one_lock_resource(res);
|
||||
int i;
|
||||
mlog(ML_ERROR, "%s:%.*s: received bad "
|
||||
"lvb! type=%d\n", dlm->name,
|
||||
res->lockname.len,
|
||||
res->lockname.name, ml->type);
|
||||
printk("lockres lvb=[");
|
||||
for (i=0; i<DLM_LVB_LEN; i++)
|
||||
printk("%02x", res->lvb[i]);
|
||||
printk("]\nmigrated lvb=[");
|
||||
for (i=0; i<DLM_LVB_LEN; i++)
|
||||
printk("%02x", mres->lvb[i]);
|
||||
printk("]\n");
|
||||
dlm_print_one_lock_resource(res);
|
||||
BUG();
|
||||
}
|
||||
memcpy(res->lvb, mres->lvb, DLM_LVB_LEN);
|
||||
|
|
Loading…
Reference in a new issue