Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Fri, 13 Oct 2006 06:53:11 +0000 (06:53 +0000)
committerwangdi <wangdi>
Fri, 13 Oct 2006 06:53:11 +0000 (06:53 +0000)
rename obsolete is_parent check in mdd_rt_sanity_check

lustre/mdd/mdd_handler.c

index 1f73d7d..3492f60 100644 (file)
@@ -2728,7 +2728,6 @@ static int mdd_rt_sanity_check(const struct lu_env *env,
                                const struct lu_fid *sfid,
                                const char *name, struct md_attr *ma)
 {
-        struct mdd_device *mdd = mdo2mdd(&tgt_pobj->mod_obj);
         int rc, src_is_dir;
         ENTRY;
 
@@ -2746,10 +2745,6 @@ static int mdd_rt_sanity_check(const struct lu_env *env,
                 rc = mdd_may_create(env, tgt_pobj, NULL, 1);
         }
 
-        /* source should not be ancestor of target dir */
-        if (rc == 0 && src_is_dir && mdd_is_parent(env, mdd, tgt_pobj, sfid, NULL))
-                RETURN(-EINVAL);
-
         RETURN(rc);
 }