From: wangdi Date: Thu, 12 Oct 2006 08:47:07 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~589 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b5dda8a320dc4dda1806ef355d6522865be88688;p=fs%2Flustre-release.git Branch: b_new_cmd ma_lmm_size is maxisam of lov md size initially, which should be update in req2attr update --- diff --git a/lustre/cmm/mdc_object.c b/lustre/cmm/mdc_object.c index 4c403b8..aa496ce 100644 --- a/lustre/cmm/mdc_object.c +++ b/lustre/cmm/mdc_object.c @@ -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))