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:
849a965
)
root_get() makes sense only on master MDS
author
tappro
<tappro>
Fri, 23 Jun 2006 20:15:35 +0000
(20:15 +0000)
committer
tappro
<tappro>
Fri, 23 Jun 2006 20:15:35 +0000
(20:15 +0000)
lustre/cmm/cmm_device.c
patch
|
blob
|
history
diff --git
a/lustre/cmm/cmm_device.c
b/lustre/cmm/cmm_device.c
index
9e8c87a
..
123770a
100644
(file)
--- a/
lustre/cmm/cmm_device.c
+++ b/
lustre/cmm/cmm_device.c
@@
-58,9
+58,12
@@
static int cmm_root_get(const struct lu_context *ctx, struct md_device *md,
struct lu_fid *fid)
{
struct cmm_device *cmm_dev = md2cmm_dev(md);
-
- return cmm_child_ops(cmm_dev)->mdo_root_get(ctx,
+ /* valid only on master MDS */
+ if (cmm_dev->cmm_local_num == 0)
+ return cmm_child_ops(cmm_dev)->mdo_root_get(ctx,
cmm_dev->cmm_child, fid);
+ else
+ return -EINVAL;
}
static int cmm_statfs(const struct lu_context *ctxt, struct md_device *md,