From 199f8b6ba17032fc45714da315c4bcb2658a6946 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 22 Aug 2008 17:40:53 +0000 Subject: [PATCH] b=15899 i=nathan i=adilger add OST pools --- lustre/obdclass/obd_config.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 0c85bc0..d935f6a 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -873,6 +873,28 @@ int class_process_config(struct lustre_cfg *lcfg) err = class_sptlrpc_conf(obd, lcfg); GOTO(out, err = 0); } + case LCFG_POOL_NEW: { + err = obd_pool_new(obd, lustre_cfg_string(lcfg, 2)); + GOTO(out, err = 0); + break; + } + case LCFG_POOL_ADD: { + err = obd_pool_add(obd, lustre_cfg_string(lcfg, 2), + lustre_cfg_string(lcfg, 3)); + GOTO(out, err = 0); + break; + } + case LCFG_POOL_REM: { + err = obd_pool_rem(obd, lustre_cfg_string(lcfg, 2), + lustre_cfg_string(lcfg, 3)); + GOTO(out, err = 0); + break; + } + case LCFG_POOL_DEL: { + err = obd_pool_del(obd, lustre_cfg_string(lcfg, 2)); + GOTO(out, err = 0); + break; + } default: { err = obd_process_config(obd, sizeof(*lcfg), lcfg); GOTO(out, err); -- 1.8.3.1