Whamcloud - gitweb
b=3869
authoralex <alex>
Sat, 17 Jul 2004 12:39:41 +0000 (12:39 +0000)
committeralex <alex>
Sat, 17 Jul 2004 12:39:41 +0000 (12:39 +0000)
- more debug info

lustre/mds/mds_reint.c

index 8564f6b..5816f55 100644 (file)
@@ -530,21 +530,30 @@ static void reconstruct_reint_create(struct mds_update_record *rec, int offset,
         struct mds_obd *obd = &req->rq_export->exp_obd->u.mds;
         struct dentry *parent, *child;
         struct mds_body *body;
+        ENTRY;
+
+        DEBUG_REQ(D_INODE, req, "parent "LPU64"/%u name %s mode %o",
+                  rec->ur_fid1->id, rec->ur_fid1->generation,
+                  rec->ur_name, rec->ur_mode);
 
         mds_req_from_mcd(req, med->med_mcd);
 
-        if (req->rq_status)
+        if (req->rq_status) {
+                EXIT;
                 return;
+        }
 
         parent = mds_fid2dentry(obd, rec->ur_fid1, NULL);
         LASSERT(!IS_ERR(parent));
         child = ll_lookup_one_len(rec->ur_name, parent, rec->ur_namelen - 1);
         LASSERT(!IS_ERR(child));
+        LASSERT(child->d_inode != NULL);
         body = lustre_msg_buf(req->rq_repmsg, offset, sizeof (*body));
         mds_pack_inode2fid(req2obd(req), &body->fid1, child->d_inode);
         mds_pack_inode2body(req2obd(req), body, child->d_inode);
         l_dput(parent);
         l_dput(child);
+        EXIT;
 }
 
 static int mds_reint_create(struct mds_update_record *rec, int offset,