X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_config.c;h=a0b582c2c5fa0af8f2e54e02d4ac91882d69f9b4;hp=a96e32b484a1a36248ac2621d8658554e4c0879c;hb=ba2ecf04beab65a6a4c8399c6a740999de218ece;hpb=826addfa95ae6c5eb9f8ebfa6e3b38293b38bfb9 diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index a96e32b..a0b582c 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -647,8 +647,16 @@ static int class_config_parse_handler(struct llog_handle * handle, cfg->cfg_instance); } } - if (cfg && (lcfg->lcfg_command == LCFG_ATTACH)) { - lustre_cfg_bufs_set_string(&bufs, 2, + + if (cfg && (lcfg->lcfg_command == LCFG_ATTACH)){ + /*Very Dirty Hack fix here, for mds add, + *the mdc in mds should not + *change uuid FIXME: Wangdi + */ + if (memcmp(lustre_cfg_string(lcfg, 1), OBD_MDC_DEVICENAME, + strlen(OBD_MDC_DEVICENAME)) || + (cfg->cfg_flags & CFG_MODIFY_UUID_FL)) + lustre_cfg_bufs_set_string(&bufs, 2, (char *)cfg->cfg_uuid.uuid); } lcfg_new = lustre_cfg_new(lcfg->lcfg_command, &bufs);