Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Thu, 12 Oct 2006 08:47:07 +0000 (08:47 +0000)
committerwangdi <wangdi>
Thu, 12 Oct 2006 08:47:07 +0000 (08:47 +0000)
ma_lmm_size is maxisam of lov md size initially, which should be update
in req2attr update

lustre/cmm/mdc_object.c

index 4c403b8..aa496ce 100644 (file)
@@ -177,7 +177,8 @@ static int mdc_req2attr_update(const struct lu_env *env,
         }
 
         LASSERT(ma->ma_lmm != NULL);
-        LASSERT(ma->ma_lmm_size == body->eadatasize);
+        LASSERT(ma->ma_lmm_size >= body->eadatasize); 
+        ma->ma_lmm_size = body->eadatasize;
         memcpy(ma->ma_lmm, lov, ma->ma_lmm_size);
         ma->ma_valid |= MA_LOV;
         if (!(body->valid & OBD_MD_FLCOOKIE))