From: alex Date: Sat, 10 Sep 2005 07:20:52 +0000 (+0000) Subject: - make obdfilter able to create object upon OST_CREATE as before, X-Git-Tag: 1.4.10~568 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5f5213928d937621922b1bba063bed31269bb559;p=fs%2Flustre-release.git - make obdfilter able to create object upon OST_CREATE as before, need this for lustre-iokit. --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index b132dde..3f46dc0 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -2574,6 +2574,21 @@ filter_create(struct obd_export *exp, struct obdo *oa, void *acl, CDEBUG(D_INFO, "filter_create(od->o_gr=%d,od->o_id="LPU64")\n", group, oa->o_id); + if (oa->o_gr == FILTER_GROUP_ECHO) { + rc = filter_create_object(obd, oa); + if (rc == 0 && ea != NULL) { + struct lov_stripe_md *lsm = *ea; + if (lsm == NULL) { + rc = obd_alloc_memmd(exp, &lsm); + LASSERT(rc >= 0); + } + lsm->lsm_object_id = oa->o_id; + *ea = lsm; + rc = 0; + } + + RETURN(rc); + } obd = exp->exp_obd; push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);