diff --git a/lustre/lov/lov_ea.c b/lustre/lov/lov_ea.c index c5b3a9f9bd7859c18865bad81f119a5a7b7d0254..f244f8080a2f4857abbc209e2a46d5e55c741298 100755 --- a/lustre/lov/lov_ea.c +++ b/lustre/lov/lov_ea.c @@ -444,7 +444,8 @@ static int lovea_unpack_array(struct llog_handle *handle, /* insert extent desc into lsm extent array */ lai->lai_ext_array[cursor].le_start = le64_to_cpu(med->med_start); lai->lai_ext_array[cursor].le_len = le64_to_cpu(med->med_len); - lai->lai_ext_array[cursor].le_stripe_count = lmm->lmm_stripe_count; + lai->lai_ext_array[cursor].le_stripe_count = + le32_to_cpu(lmm->lmm_stripe_count); /* unpack extent's lmm to lov_oinfo array */ loi_index = lai->lai_ext_array[cursor].le_loi_idx; @@ -584,8 +585,10 @@ static int lovea_init_array_info(struct lov_stripe_md *lsm, if (!lai) RETURN(-ENOMEM); - lai->lai_array_id = *logid; - lai->lai_ext_count = extent_count; + lai->lai_array_id.lgl_oid = le64_to_cpu(logid->lgl_oid); + lai->lai_array_id.lgl_ogr = le64_to_cpu(logid->lgl_ogr); + lai->lai_array_id.lgl_ogen = le32_to_cpu(logid->lgl_ogen); + lai->lai_ext_count = le32_to_cpu(extent_count); lsm->lsm_array = lai; RETURN(0); } diff --git a/lustre/obdclass/llog_swab.c b/lustre/obdclass/llog_swab.c index 96cb653c0554987bc8d97a9f9cb944810dfab04a..8636e8518a40a8111ecb6a1494cc8af5207d3582 100644 --- a/lustre/obdclass/llog_swab.c +++ b/lustre/obdclass/llog_swab.c @@ -169,7 +169,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec, struct llog_rec_tail *tail) __swab32s(&lid->lid_id.lgl_ogen); break; } - + case LLOG_JOIN_REC: case LLOG_PAD_MAGIC: /* ignore old pad records of type 0 */ case 0: