From: tappro Date: Thu, 18 May 2006 13:41:23 +0000 (+0000) Subject: lmv_fid_lookup stub similar to CMM X-Git-Tag: v1_8_0_110~486^2~1800 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a9e8be05e8020b3fb6d0be745407306bae5e6cae;p=fs%2Flustre-release.git lmv_fid_lookup stub similar to CMM fix offset value for IT_OPEN case, re-enable mdt_reint_internal() call --- diff --git a/lustre/lmv/lmv_fld.c b/lustre/lmv/lmv_fld.c index 425d0a9..79956a5 100644 --- a/lustre/lmv/lmv_fld.c +++ b/lustre/lmv/lmv_fld.c @@ -47,7 +47,10 @@ /* dummy function for a while */ int lmv_fld_lookup(struct obd_device *obd, struct lu_fid *fid) { + int rc; ENTRY; - /* MDS0 will be used until lookup will works */ - RETURN(0); + /* temporary hack until fld will works */ + rc = (unsigned long)fid_seq(fid) / LUSTRE_SEQ_RANGE; + CWARN("LMV: got MDS %d for sequence: "LPU64"\n", rc, fid_seq(fid)); + RETURN(rc); } diff --git a/lustre/lmv/lmv_intent.c b/lustre/lmv/lmv_intent.c index 7e38a91..2667e68 100644 --- a/lustre/lmv/lmv_intent.c +++ b/lustre/lmv/lmv_intent.c @@ -163,11 +163,12 @@ repeat: } op_data.fid1 = rpid; + LASSERT(cid); op_data.fid2 = *cid; op_data.name = name; op_data.namelen = len; - mds = lmv_fld_lookup(obd, &rpid); + //mds = lmv_fld_lookup(obd, &rpid); rc = md_intent_lock(lmv->tgts[mds].ltd_exp, &op_data, lmm, lmmsize, it, flags, reqp, cb_blocking, extra_lock_flags);