Whamcloud - gitweb
Branch: HEAD
[fs/lustre-release.git] / lustre / obdfilter / filter_san.c
index f6d8d06..ed4da89 100644 (file)
@@ -40,13 +40,13 @@ int filter_san_setup(struct obd_device *obd, obd_count len, void *buf)
         struct lustre_cfg* lcfg = buf;
         char *option = NULL;
 
-        if (!lcfg->lcfg_inlbuf2)
+        if (!lustre_cfg_buf(lcfg, 2))
                 RETURN(-EINVAL);
 
         /* for extN/ext3 filesystem, we must mount it with 'writeback' mode */
-        if (!strcmp(lcfg->lcfg_inlbuf2, "extN"))
+        if (!strcmp(lustre_cfg_string(lcfg, 2), "extN"))
                 option = "data=writeback";
-        else if (!strcmp(lcfg->lcfg_inlbuf2, "ext3"))
+        else if (!strcmp(lustre_cfg_string(lcfg, 2), "ext3"))
                 option = "data=writeback,asyncdel";
         else
                 LBUG(); /* just a reminder */