X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lnet%2Futils%2Flnetctl.c;h=4932aafed068d45915012302222088139ce55fd3;hb=97a64c94671c3116eddd54ca2fdda88dfad466f0;hp=16801ef85cf02e53890b3c29f714e012004859a5;hpb=3f2b6d2a7c4ab0bfcca0bcbb914ed3fdff1b1e32;p=fs%2Flustre-release.git diff --git a/lnet/utils/lnetctl.c b/lnet/utils/lnetctl.c index 16801ef..4932aaf 100644 --- a/lnet/utils/lnetctl.c +++ b/lnet/utils/lnetctl.c @@ -991,10 +991,10 @@ static int set_value_helper(int argc, char **argv, int rc, opt; struct cYAML *err_rc = NULL; - const char *const short_options = "h:n:a"; + const char *const short_options = "t:n:a"; static const struct option long_options[] = { { .name = "nid", .has_arg = required_argument, .val = 'n' }, - { .name = "health", .has_arg = required_argument, .val = 'h' }, + { .name = "health", .has_arg = required_argument, .val = 't' }, { .name = "all", .has_arg = no_argument, .val = 'a' }, { .name = NULL } }; @@ -1008,12 +1008,13 @@ static int set_value_helper(int argc, char **argv, case 'n': nid = optarg; break; - case 'h': - if (parse_long(argv[optind++], &healthv) != 0) + case 't': + if (parse_long(optarg, &healthv) != 0) healthv = -1; break; case 'a': all = true; + break; default: return 0; }