return 0;
}
-int mdc_req2lustre_md(struct obd_export *exp_mdc, struct ptlrpc_request *req,
- unsigned int offset, struct obd_export *exp_osc,
+int mdc_req2lustre_md(struct obd_export *exp_lmv, struct ptlrpc_request *req,
+ unsigned int offset, struct obd_export *exp_lov,
struct lustre_md *md)
{
int rc = 0;
LASSERT (lmm != NULL);
LASSERT_REPSWABBED (req, offset + 1);
- rc = obd_unpackmd(exp_osc, &md->lsm, lmm, lmmsize);
+ rc = obd_unpackmd(exp_lov, &md->lsm, lmm, lmmsize);
if (rc >= 0) {
LASSERT (rc >= sizeof (*md->lsm));
rc = 0;
} else if (S_ISDIR(md->body->mode)) {
struct mea *mea;
int mdsize;
- LASSERT(exp_mdc != NULL);
+ LASSERT(exp_lmv != NULL);
/* dir can be non-splitted */
if (md->body->eadatasize == 0)
LASSERT(id_fid(&mea->mea_ids[0]));
- rc = obd_unpackmd(exp_mdc, (void *)&md->mea,
+ rc = obd_unpackmd(exp_lmv, (void *)&md->mea,
(void *)mea, mdsize);
if (rc >= 0) {
LASSERT (rc >= sizeof (*md->mea));