From 5f5213928d937621922b1bba063bed31269bb559 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 10 Sep 2005 07:20:52 +0000 Subject: [PATCH] - make obdfilter able to create object upon OST_CREATE as before, need this for lustre-iokit. --- lustre/obdfilter/filter.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); -- 1.8.3.1