Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Branch: HEAD
[fs/lustre-release.git]
/
lustre
/
mds
/
mds_lov.c
diff --git
a/lustre/mds/mds_lov.c
b/lustre/mds/mds_lov.c
index
4418eec
..
6d78907
100644
(file)
--- a/
lustre/mds/mds_lov.c
+++ b/
lustre/mds/mds_lov.c
@@
-828,6
+828,7
@@
int mds_dt_update_config(struct obd_device *obd, int clean)
struct mds_obd *mds = &obd->u.mds;
struct lvfs_run_ctxt saved;
struct llog_ctxt *ctxt;
struct mds_obd *mds = &obd->u.mds;
struct lvfs_run_ctxt saved;
struct llog_ctxt *ctxt;
+ struct config_llog_instance cfg;
char *profile = mds->mds_profile, *name;
int rc, version, namelen, value;
__u32 valsize;
char *profile = mds->mds_profile, *name;
int rc, version, namelen, value;
__u32 valsize;
@@
-835,6
+836,8
@@
int mds_dt_update_config(struct obd_device *obd, int clean)
if (profile == NULL)
RETURN(0);
if (profile == NULL)
RETURN(0);
+ cfg.cfg_instance = NULL;
+ cfg.cfg_uuid = mds->mds_dt_uuid;
namelen = strlen(profile) + 20; /* -clean-######### */
OBD_ALLOC(name, namelen);
namelen = strlen(profile) + 20; /* -clean-######### */
OBD_ALLOC(name, namelen);
@@
-851,9
+854,12
@@
int mds_dt_update_config(struct obd_device *obd, int clean)
push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
ctxt = llog_get_context(&obd->obd_llogs, LLOG_CONFIG_ORIG_CTXT);
push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
ctxt = llog_get_context(&obd->obd_llogs, LLOG_CONFIG_ORIG_CTXT);
- rc = class_config_process_llog(ctxt, name,
NULL
);
+ rc = class_config_process_llog(ctxt, name,
&cfg
);
pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
-
+ CWARN("Finished applying configuration log %s: %d\n", name, rc);
+ if (rc != 0) {
+ GOTO(exit, rc);
+ }
/* retrieve size of EA */
rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
"mdsize", &valsize, &value);
/* retrieve size of EA */
rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
"mdsize", &valsize, &value);
@@
-865,8
+871,7
@@
int mds_dt_update_config(struct obd_device *obd, int clean)
if (rc == 0)
mds->mds_config_version = version;
if (rc == 0)
mds->mds_config_version = version;
- CWARN("Finished applying configuration log %s: %d\n", name, rc);
-
+exit:
OBD_FREE(name, namelen);
RETURN(rc);
}
OBD_FREE(name, namelen);
RETURN(rc);
}