From: yangsheng Date: Fri, 23 Jan 2009 17:04:41 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: GIT_EPOCH_B1_6~2^5~227 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=56992b37829394d861277c1fd5273110a7a6f466;p=fs%2Flustre-release.git Branch b1_6 b=17464 Recommit lost part(I wonder why it lost). --- diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 1f5d1c5..4a92f0c 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -2282,6 +2282,19 @@ void lustre_swab_mds_md(struct lov_mds_md *lmm) EXIT; } +void lustre_swab_mds_md(struct lov_mds_md *lmm) +{ + ENTRY; + CDEBUG(D_IOCTL, "swabbing lov_mds_md\n"); + __swab32s(&lmm->lmm_magic); + __swab32s(&lmm->lmm_pattern); + __swab64s(&lmm->lmm_object_id); + __swab64s(&lmm->lmm_object_gr); + __swab32s(&lmm->lmm_stripe_size); + __swab32s(&lmm->lmm_stripe_count); + EXIT; +} + void lustre_swab_lov_user_md_join(struct lov_user_md_join *lumj) { ENTRY;