From: rread Date: Wed, 8 Oct 2003 07:06:20 +0000 (+0000) Subject: landing b_lcfg to b_devel X-Git-Tag: v1_7_100~1^368~46 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=020acf0badd539d2dd7bb404ca5e786d14441a61;p=fs%2Flustre-release.git landing b_lcfg to b_devel - llog network api for processing the log from the client - config messages changed to use struct lustre_cfg and struct portals_cfg - lctl record options save config messages to log on the mds - ll_fill_super supports fetching the log and replaying to setup the devices needed for mount. - small changes to lctl interface to support new config protocol. - newdev is now a no-op. - cfg_device is used to set the target device for detach and cleanup. --- diff --git a/lustre/cobd/cache_obd.c b/lustre/cobd/cache_obd.c index 059364a..ea4f1f7 100644 --- a/lustre/cobd/cache_obd.c +++ b/lustre/cobd/cache_obd.c @@ -48,7 +48,7 @@ static int cobd_detach(struct obd_device *dev) static int cobd_setup (struct obd_device *dev, obd_count len, void *buf) { - struct obd_ioctl_data *data = (struct obd_ioctl_data *)buf; + struct lustre_cfg *lcfg = (struct lustre_cfg *)buf; struct cache_obd *cobd = &dev->u.cobd; struct obd_device *target; struct obd_device *cache; @@ -57,14 +57,14 @@ cobd_setup (struct obd_device *dev, obd_count len, void *buf) struct lustre_handle target_conn = {0,}, cache_conn = {0,}; int rc; - if (data->ioc_inlbuf1 == NULL || - data->ioc_inlbuf2 == NULL) + if (lcfg->lcfg_inlbuf1 == NULL || + lcfg->lcfg_inlbuf2 == NULL) return (-EINVAL); - obd_str2uuid(&target_uuid, data->ioc_inlbuf1); + obd_str2uuid(&target_uuid, lcfg->lcfg_inlbuf1); target = class_uuid2obd (&target_uuid); - obd_str2uuid(&cache_uuid, data->ioc_inlbuf2); + obd_str2uuid(&cache_uuid, lcfg->lcfg_inlbuf2); cache = class_uuid2obd (&cache_uuid); if (target == NULL || cache == NULL)