Skip to content
Snippets Groups Projects
Commit 671f9963 authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch b1_6

b=16758
i=shadow, adilger, johann

Fixed the endian problem for PPC64 patchless client.
parent d7c5b3cf
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment