Whamcloud - gitweb
add debug info
authortappro <tappro>
Sat, 11 Nov 2006 08:26:34 +0000 (08:26 +0000)
committertappro <tappro>
Sat, 11 Nov 2006 08:26:34 +0000 (08:26 +0000)
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c

index b42c8a7..3545a84 100644 (file)
@@ -550,7 +550,8 @@ static int mdd_unlink(const struct lu_env *env, struct md_object *pobj,
          */
         if (!lu_object_exists(&cobj->mo_lu))
                 RETURN(-ENOENT);
-        LASSERT(lu_object_exists(&cobj->mo_lu) > 0);
+        LASSERTF(lu_object_exists(&cobj->mo_lu) > 0, "FID is"DFID"\n",
+                 PFID(lu_object_fid(&cobj->mo_lu)));
         
         rc = mdd_log_txn_param_build(env, cobj, ma, MDD_TXN_UNLINK_OP);
         if (rc)
index df9f9b7..a88d29f 100644 (file)
@@ -58,7 +58,8 @@ int mdd_la_get(const struct lu_env *env, struct mdd_object *obj,
                struct lu_attr *la, struct lustre_capa *capa)
 {
         struct dt_object *next = mdd_object_child(obj);
-        LASSERT(lu_object_exists(mdd2lu_obj(obj)));
+        LASSERTF(lu_object_exists(mdd2lu_obj(obj)), "FID is "DFID"\n",
+                 PFID(lu_object_fid(mdd2lu_obj(obj))));
         return next->do_ops->do_attr_get(env, next, la, capa);
 }