Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc6be38
)
Branch: b_new_cmd
author
wangdi
<wangdi>
Fri, 13 Oct 2006 06:53:11 +0000
(06:53 +0000)
committer
wangdi
<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
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_handler.c
b/lustre/mdd/mdd_handler.c
index
1f73d7d
..
3492f60
100644
(file)
--- a/
lustre/mdd/mdd_handler.c
+++ b/
lustre/mdd/mdd_handler.c
@@
-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);
}