From ca9d46da5bdd9a9fcce88ea8b1cfc928054606a7 Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 25 Aug 2005 06:28:16 +0000 Subject: [PATCH] Branch: HEAD tmp hack fix for b7148, now we use confobd to write config log, so mds_config_version is useless in config log name defination. Remove it temporarily. b7148 --- lustre/mds/mds_lov.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 497bf5c..1099a2d 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -828,7 +828,7 @@ int mds_dt_update_config(struct obd_device *obd, int clean) struct config_llog_instance cfg; struct llog_ctxt *ctxt; char *profile = mds->mds_profile, *name; - int rc, version, namelen; + int rc, namelen; ENTRY; if (profile == NULL) @@ -841,7 +841,7 @@ int mds_dt_update_config(struct obd_device *obd, int clean) OBD_ALLOC(name, namelen); if (name == NULL) RETURN(-ENOMEM); - +#if 0 if (clean) { version = mds->mds_config_version - 1; sprintf(name, "%s-clean-%d", profile, version); @@ -849,7 +849,14 @@ int mds_dt_update_config(struct obd_device *obd, int clean) version = mds->mds_config_version + 1; sprintf(name, "%s-%d", profile, version); } - +#else + if (clean) { + sprintf(name, "%s-clean", profile); + } else { + sprintf(name, "%s", profile); + } +#warning "should add config version finally" +#endif CWARN("Applying configuration log %s\n", name); push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); -- 1.8.3.1