X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flustre_cfg.c;h=9a552f51c546b540ffe1d85a55dad275f5878383;hp=ab5a68f2c6964f08bd56e3e1e74270c48344e9e5;hb=e0d2bfe3b93d5179c9aee4a65e1695fa4c7779ed;hpb=723613a734af240e03d9e8b42afeba442a77142d diff --git a/lustre/utils/lustre_cfg.c b/lustre/utils/lustre_cfg.c index ab5a68f..9a552f5 100644 --- a/lustre/utils/lustre_cfg.c +++ b/lustre/utils/lustre_cfg.c @@ -554,7 +554,7 @@ static int jt_lcfg_mgsparam2(int argc, char **argv, struct param_opts *popt) int rc2 = lcfg_mgs_ioctl(argv[0], OBD_DEV_ID, lcfg); if (rc2 != 0) { fprintf(stderr, "error: executing %s: %s\n", - jt_cmdname(argv[0]), strerror(rc2)); + jt_cmdname(argv[0]), strerror(errno)); if (rc == 0) rc = rc2; } @@ -576,13 +576,13 @@ static int jt_lcfg_mgsparam2(int argc, char **argv, struct param_opts *popt) * AT NEXT REBOOT, not immediately. */ int jt_lcfg_mgsparam(int argc, char **argv) { - int rc; - int del = 0; - struct lustre_cfg_bufs bufs; - struct lustre_cfg *lcfg; - char *buf = NULL; + int rc; + int del = 0; + struct lustre_cfg_bufs bufs; + struct lustre_cfg *lcfg; + char *buf = NULL; -#if LUSTRE_VERSION >= OBD_OCD_VERSION(2,7,53,0) +#if LUSTRE_VERSION_CODE >= OBD_OCD_VERSION(2, 7, 53, 0) fprintf(stderr, "warning: 'lctl conf_param' is deprecated, " "use 'lctl set_param -P' instead\n"); #endif