Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da4a583
)
Branch: b_new_cmd
author
wangdi
<wangdi>
Thu, 12 Oct 2006 08:47:07 +0000
(08:47 +0000)
committer
wangdi
<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
patch
|
blob
|
history
diff --git
a/lustre/cmm/mdc_object.c
b/lustre/cmm/mdc_object.c
index
4c403b8
..
aa496ce
100644
(file)
--- 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))