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 */