Whamcloud - gitweb
fix defect with open of existent file. There is no FID supplied for child in
authortappro <tappro>
Wed, 19 Jul 2006 23:17:07 +0000 (23:17 +0000)
committertappro <tappro>
Wed, 19 Jul 2006 23:17:07 +0000 (23:17 +0000)
that case

lustre/lmv/lmv_intent.c
lustre/mdt/mdt_open.c

index b45693a..24ddb32 100644 (file)
@@ -164,8 +164,10 @@ repeat:
         }
 
         op_data.fid1 = rpid;
-        LASSERT(cid);
-        op_data.fid2 = *cid;
+        if ((it->it_op & IT_CREAT) && cid == NULL)
+                CERROR("IT_CREAT but without FID\n");
+        if (cid)
+                op_data.fid2 = *cid;
         op_data.name = name;
         op_data.namelen = len;
 
index 137119a..29cdc71 100644 (file)
@@ -274,8 +274,6 @@ int mdt_reint_open(struct mdt_thread_info *info)
                 if (attr->la_flags & MDS_OPEN_EXCL &&
                     attr->la_flags & MDS_OPEN_CREAT)
                         GOTO(out_parent, result = -EEXIST);
-                /* child_fid is filled by mdo_lookup(). */
-                LASSERT(lu_fid_eq(child_fid, info->mti_rr.rr_fid2));
         }
 
         child = mdt_object_find(info->mti_ctxt, mdt, child_fid);