From: tappro Date: Sun, 7 May 2006 13:56:17 +0000 (+0000) Subject: setup local index X-Git-Tag: v1_8_0_110~486^2~1863 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=0cf8f575178b7867513f02cb3021c61d3dfe56db;p=fs%2Flustre-release.git setup local index --- diff --git a/lustre/cmm/cmm_device.c b/lustre/cmm/cmm_device.c index cb448b2..6cc2ad0 100644 --- a/lustre/cmm/cmm_device.c +++ b/lustre/cmm/cmm_device.c @@ -139,6 +139,13 @@ static int cmm_process_config(struct lu_device *d, struct lustre_cfg *cfg) case LCFG_ADD_MDC: err = cmm_add_mdc(m, cfg); break; + case LCFG_SETUP: + { + const char *index = lustre_cfg_string(cfg, 2); + LASSERT(index); + m->cmm_local_num = simple_strtol(index, NULL, 10); + /* no break; to pass cfg further */ + } default: err = next->ld_ops->ldo_process_config(next, cfg); }