Whamcloud - gitweb
landing b_lcfg to b_devel
authorrread <rread>
Wed, 8 Oct 2003 07:06:20 +0000 (07:06 +0000)
committerrread <rread>
Wed, 8 Oct 2003 07:06:20 +0000 (07:06 +0000)
- 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 <device name> is used to set the target device for
    detach and cleanup.

lustre/cobd/cache_obd.c

index 059364a..ea4f1f7 100644 (file)
@@ -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)