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:
78c709a
)
- OST A/M/D should work OK in non-CMD setup
author
alex
<alex>
Sat, 24 Sep 2005 00:17:35 +0000
(
00:17
+0000)
committer
alex
<alex>
Sat, 24 Sep 2005 00:17:35 +0000
(
00:17
+0000)
lustre/mds/mds_lov.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_lov.c
b/lustre/mds/mds_lov.c
index
6517874
..
c69e8b7
100644
(file)
--- a/
lustre/mds/mds_lov.c
+++ b/
lustre/mds/mds_lov.c
@@
-862,13
+862,15
@@
int mds_dt_update_config(struct obd_device *obd, int clean)
GOTO(exit, rc);
}
/* retrieve size of EA */
GOTO(exit, rc);
}
/* retrieve size of EA */
- rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
- "mdsize", &valsize, &value);
-
- if (value > mds->mds_max_mdsize)
- mds->mds_max_mdsize = value;
+ if (mds->mds_md_exp) {
+ rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
+ "mdsize", &valsize, &value);
+
+ if (value > mds->mds_max_mdsize)
+ mds->mds_max_mdsize = value;
- CDEBUG(D_INFO, "mds max md size %d \n", mds->mds_max_mdsize);
+ CDEBUG(D_INFO, "mds max md size %d \n", mds->mds_max_mdsize);
+ }
if (rc == 0)
mds->mds_config_version = version;
if (rc == 0)
mds->mds_config_version = version;