Whamcloud - gitweb
a minor reorganization of capability code.
[fs/lustre-release.git] / lustre / osc / osc_lib.c
index cdf2ae6..34532e1 100644 (file)
@@ -60,16 +60,16 @@ int client_sanobd_setup(struct obd_device *obddev, obd_count len, void *buf)
         struct client_obd *cli = &obddev->u.cli;
         ENTRY;
 
-        if (lcfg->lcfg_inllen3 < 1) {
+        if (LUSTRE_CFG_BUFLEN(lcfg, 3) < 1) {
                 CERROR("setup requires a SAN device pathname\n");
                 RETURN(-EINVAL);
         }
 
         client_obd_setup(obddev, len, buf);
 
-        cli->cl_sandev = path2dev(lcfg->lcfg_inlbuf3);
+        cli->cl_sandev = path2dev(lustre_cfg_string(lcfg, 3));
         if (!kdev_t_to_nr(cli->cl_sandev)) {
-                CERROR("%s seems not a valid SAN device\n", lcfg->lcfg_inlbuf3);
+                CERROR("%s seems not a valid SAN device\n", lustre_cfg_string(lcfg, 3));
                 RETURN(-EINVAL);
         }