From: tappro Date: Tue, 20 Jun 2006 09:22:01 +0000 (+0000) Subject: small fixes due to 'open_handling' proto X-Git-Tag: v1_8_0_110~486^2~1602 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e76b366f1136349a9ce73fe51e40b83660261951;p=fs%2Flustre-release.git small fixes due to 'open_handling' proto --- diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index 25190f9..9c6f01d 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -148,7 +148,7 @@ static int mdt_reint_create(struct mdt_thread_info *info) } case S_IFDIR:{ if (strlen(info->mti_rr.rr_name) > 0) - rc = mdt_md_mkdir(info); + rc = mdt_md_create(info); else rc = mdt_md_mkobj(info); @@ -280,11 +280,12 @@ static int mdt_reint_open(struct mdt_thread_info *info) lmm = req_capsule_server_get(&info->mti_pill, &RMF_MDT_MD); + /* not supported yet in MDD result = mo_xattr_get(info->mti_ctxt, mdt_object_child(child), lmm, MAX_MD_SIZE, "lov"); if (result <= 0) GOTO(destroy_child, result = -EINVAL); - + */ if (S_ISDIR(info->mti_attr.la_mode)) body->valid |= OBD_MD_FLDIREA; else @@ -309,8 +310,10 @@ static int mdt_reint_open(struct mdt_thread_info *info) /*TODO add permission checking here */ if (S_ISREG(mode)) ; - /* Open it now. */ + + /* TODO: not supported yet result = mdt_md_open(info, child); + */ destroy_child: if (result != 0 && created)