X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgs%2Fmgs_llog.c;h=b6fb67f4c99b8b56e5972270f32706280dd481c9;hp=1e371734070ef62e33778dcff50451325f2e63ae;hb=dc2850059e894691a7854a0178f311990719fb7a;hpb=d25381cc073044f26f7e0eb0461a3526610b0d52 diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index 1e37173..b6fb67f 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -5432,7 +5432,7 @@ int mgs_nodemap_cmd(const struct lu_env *env, struct mgs_device *mgs, rc = nodemap_set_deny_unknown(nodemap_name, bool_switch); break; case LCFG_NODEMAP_AUDIT_MODE: - rc = kstrtoul(param, 10, (unsigned long *)&bool_switch); + rc = kstrtobool(param, &bool_switch); if (rc == 0) rc = nodemap_set_audit_mode(nodemap_name, bool_switch); break;