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)
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);
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);