]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ocfs2: dump mismatching migrated lvbs before BUG()
authorKurt Hackel <kurt.hackel@oracle.com>
Mon, 1 May 2006 18:15:04 +0000 (11:15 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Mon, 26 Jun 2006 21:42:59 +0000 (14:42 -0700)
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/dlm/dlmrecovery.c

index 19123ce8b3064a7e9aa45b231d7653107354933b..de68e498bfadfa875b291c68d6ec1c9858f4f67a 100644 (file)
@@ -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);