lctl-nodemap_activate \- activate or deactivate the nodemap feature
.SH SYNOPSIS
.SY "lctl nodemap_activate"
-.RB { 0 | 1 }
+.RB { <0,off,false,f,no,n> | <1,on,true,t,yes,y> }
.YS
.SH DESCRIPTION
.B nodemap_activate
active, all client IDs are mapped based on rules specified by the administrator,
and filesystem operations may be restricted or prevented.
.SH OPTIONS
-Passing 0 disables the nodemap feature, while 1 activates the feature.
+Passing
+.BI 0
+,
+.BI off
+,
+.BI false
+,
+.BI f
+,
+.BI no
+, or
+.BI n
+disables the nodemap feature, while
+.BI 1
+,
+.BI on
+,
+.BI true
+,
+.BI t
+,
+.BI yes
+, or
+.BI y
+activates the feature.
.SH EXAMPLES
.EX
.B # lctl nodemap_activate 1
if (lcfg->lcfg_bufcount != 2)
GOTO(out_lcfg, rc = -EINVAL);
param = lustre_cfg_string(lcfg, 1);
- if (strcmp(param, "1") == 0)
+ if (strcmp(param, "1") == 0 ||
+ strcasecmp(param, "on") == 0 ||
+ strcasecmp(param, "yes") == 0 ||
+ strcasecmp(param, "y") == 0 ||
+ strcasecmp(param, "true") == 0 ||
+ strcasecmp(param, "t") == 0)
nodemap_activate(1);
- else
+ else if (strcmp(param, "0") == 0 ||
+ strcasecmp(param, "off") == 0 ||
+ strcasecmp(param, "no") == 0 ||
+ strcasecmp(param, "n") == 0 ||
+ strcasecmp(param, "false") == 0 ||
+ strcasecmp(param, "f") == 0)
nodemap_activate(0);
+ else
+ rc = -EINVAL;
break;
case LCFG_NODEMAP_ADD:
case LCFG_NODEMAP_DEL: