From a9e8be05e8020b3fb6d0be745407306bae5e6cae Mon Sep 17 00:00:00 2001 From: tappro Date: Thu, 18 May 2006 13:41:23 +0000 Subject: [PATCH] lmv_fid_lookup stub similar to CMM fix offset value for IT_OPEN case, re-enable mdt_reint_internal() call --- lustre/lmv/lmv_fld.c | 7 +++++-- lustre/lmv/lmv_intent.c | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) 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); -- 1.8.3.1