+ if (S_ISREG(lu_object_attr(lod2lu_obj(lo)))) {
+ rc = lod_get_lov_ea(env, lo);
+ if (rc <= 0)
+ GOTO(out, rc);
+ /*
+ * there is LOV EA (striping information) in this object
+ * let's parse it and create in-core objects for the stripes
+ */
+ buf->lb_buf = info->lti_ea_store;
+ buf->lb_len = info->lti_ea_store_size;
+ rc = lod_parse_striping(env, lo, buf);
+ } else if (S_ISDIR(lu_object_attr(lod2lu_obj(lo)))) {
+ rc = lod_get_lmv_ea(env, lo);
+ if (rc < sizeof(struct lmv_mds_md_v1))
+ GOTO(out, rc = rc > 0 ? -EINVAL : rc);
+
+ buf->lb_buf = info->lti_ea_store;
+ buf->lb_len = info->lti_ea_store_size;
+ if (rc == sizeof(struct lmv_mds_md_v1)) {
+ rc = lod_load_lmv_shards(env, lo, buf, true);
+ if (buf->lb_buf != info->lti_ea_store) {
+ OBD_FREE_LARGE(info->lti_ea_store,
+ info->lti_ea_store_size);
+ info->lti_ea_store = buf->lb_buf;
+ info->lti_ea_store_size = buf->lb_len;
+ }