From 2f3680e53e469749d5068cff8a34ad0c5c51b5f9 Mon Sep 17 00:00:00 2001 From: alex <alex> Date: Sat, 17 Jul 2004 12:39:41 +0000 Subject: [PATCH] b=3869 - more debug info --- lustre/mds/mds_reint.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 8564f6b4de..5816f55041 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -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, -- GitLab