Whamcloud - gitweb
LU-12854 nodemap: allow boolean value for audit_mode
[fs/lustre-release.git] / lustre / mgs / mgs_llog.c
index 1e37173..b6fb67f 100644 (file)
@@ -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;