From 0899e0d56cdc169da92ad5d05feb1b8fda1446f0 Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 24 Apr 2006 08:52:14 +0000 Subject: [PATCH] - lmv_fld_lookup returns 0 instead of error. - LCFG_ADD_MDC is used in lmv_process_config --- lustre/lmv/lmv_fld.c | 3 ++- lustre/lmv/lmv_obd.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/lmv/lmv_fld.c b/lustre/lmv/lmv_fld.c index 087b60e..425d0a9 100644 --- a/lustre/lmv/lmv_fld.c +++ b/lustre/lmv/lmv_fld.c @@ -48,5 +48,6 @@ int lmv_fld_lookup(struct obd_device *obd, struct lu_fid *fid) { ENTRY; - RETURN(-ENOTSUPP); + /* MDS0 will be used until lookup will works */ + RETURN(0); } diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index b8ee5c9..5819a04 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -716,7 +716,7 @@ static int lmv_process_config(struct obd_device *obd, obd_count len, void *buf) ENTRY; switch(lcfg->lcfg_command) { - case LCFG_LMV_ADD_OBD: + case LCFG_ADD_MDC: if (LUSTRE_CFG_BUFLEN(lcfg, 1) > sizeof(tgt_uuid.uuid)) GOTO(out, rc = -EINVAL); -- 1.8.3.1