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:
b6559e8
)
Branch b1_8
author
yangsheng
<yangsheng>
Fri, 13 Mar 2009 14:25:00 +0000
(14:25 +0000)
committer
yangsheng
<yangsheng>
Fri, 13 Mar 2009 14:25:00 +0000
(14:25 +0000)
b=17701
Recommit the cast for MD v3.
lustre/lov/lov_pack.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_pack.c
b/lustre/lov/lov_pack.c
index
3379a2f
..
07542b6
100644
(file)
--- a/
lustre/lov/lov_pack.c
+++ b/
lustre/lov/lov_pack.c
@@
-627,7
+627,8
@@
int lov_getstripe(struct obd_export *exp, struct lov_stripe_md *lsm,
if (lmmk->lmm_magic == LOV_MAGIC_V3) {
memmove((char*)(&lmmk->lmm_stripe_count) +
sizeof(lmmk->lmm_stripe_count),
- lmmk->lmm_objects, lmmk->lmm_stripe_count *
+ ((struct lov_mds_md_v3*)lmmk)->lmm_objects,
+ lmmk->lmm_stripe_count *
sizeof(struct lov_ost_data_v1));
lmm_size -= LOV_MAXPOOLNAME;
}