Whamcloud - gitweb
lmv_fid_lookup stub similar to CMM
authortappro <tappro>
Thu, 18 May 2006 13:41:23 +0000 (13:41 +0000)
committertappro <tappro>
Thu, 18 May 2006 13:41:23 +0000 (13:41 +0000)
fix offset value for IT_OPEN case, re-enable mdt_reint_internal() call

lustre/lmv/lmv_fld.c
lustre/lmv/lmv_intent.c

index 425d0a9..79956a5 100644 (file)
 /* 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);
 }
index 7e38a91..2667e68 100644 (file)
@@ -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);