do_facet mds$num "lctl set_param -n mdt.$MDT.identity_upcall \"NONE\""
fi
- do_facet mds$num "lctl set_param -n mdt/$MDT/identity_flush \"-1\""
+ do_facet mds$num "lctl set_param -n mdt/$MDT/identity_flush=-1"
if [ $old = "NONE" ]; then
return 1
" -F When -N specified, add '/', '@' or '=' for directories,\n"
" symlinks and writeable files, respectively."},
{"set_param", jt_lcfg_setparam, 0, "set the Lustre or LNET parameter\n"
- "usage: set_param [-n] <param_path1=value1 param_path2 value2 ...>\n"
+ "usage: set_param [-n] <param_path1=value1 param_path2=value2 ...>\n"
"Set the value of the Lustre or LNET parameter at the specified path\n"
" -n Disable printing of the key name when printing values."},
{"list_param", jt_lcfg_listparam, 0,
}
struct param_opts {
- int only_path;
- int show_path;
- int show_type;
- int recursive;
+ int only_path:1;
+ int show_path:1;
+ int show_type:1;
+ int recursive:1;
};
static int listparam_cmdline(int argc, char **argv, struct param_opts *popt)
popt->show_path = 1;
popt->only_path = 0;
popt->show_type = 0;
+ popt->recursive = 0;
while ((ch = getopt(argc, argv, "nNF")) != -1) {
switch (ch) {
popt->show_path = 1;
popt->only_path = 0;
popt->show_type = 0;
+ popt->recursive = 0;
while ((ch = getopt(argc, argv, "n")) != -1) {
switch (ch) {