From a302a9c611f464ab666f0cf2269612f819028b32 Mon Sep 17 00:00:00 2001 From: wangdi Date: Mon, 14 Jun 2004 14:37:45 +0000 Subject: [PATCH] get rid of setting stripe info of parent inode in mds_create_objects. which will conflict with mea in dir --- lustre/mds/mds_open.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 3112bc0..c170d5e 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -389,22 +389,7 @@ static int mds_create_objects(struct ptlrpc_request *req, int offset, 0, &lsm, rec->ur_eadata); if (rc) GOTO(out_oa, rc); - } else { - OBD_ALLOC(lmm, mds->mds_max_mdsize); - if (lmm == NULL) - GOTO(out_oa, rc = -ENOMEM); - - lmm_size = mds->mds_max_mdsize; - rc = mds_get_md(obd, dchild->d_parent->d_inode, - lmm, &lmm_size, 1); - if (rc > 0) - rc = obd_iocontrol(OBD_IOC_LOV_SETSTRIPE, - mds->mds_osc_exp, - 0, &lsm, lmm); - OBD_FREE(lmm, mds->mds_max_mdsize); - if (rc) - GOTO(out_oa, rc); - } + } LASSERT(oa->o_gr >= FILTER_GROUP_FIRST_MDS); rc = obd_create(mds->mds_osc_exp, oa, &lsm, &oti); if (rc) { -- 1.8.3.1