X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flctl.c;h=1da619c6aa91d99d4ca76f320c893f1876769bc9;hp=261da5419acc1c99f088a0f092fe791f92885c3e;hb=593b6ab6d21976d37004621b86f37715df697e9e;hpb=e92b9f84c11f6298401a0e73b09cf36a982f4fbe diff --git a/lustre/utils/lctl.c b/lustre/utils/lctl.c index 261da54..1da619c 100644 --- a/lustre/utils/lctl.c +++ b/lustre/utils/lctl.c @@ -47,11 +47,6 @@ #include #include -static int jt_quit(int argc, char **argv) { - Parser_quit(argc, argv); - return 0; -} - static int jt_noop(int argc, char **argv) { return 0; } @@ -80,11 +75,13 @@ command_t cmdlist[] = { {"lustre_build_version", jt_get_version, 0, "print the build version of lustre\n" "usage: lustre_build_version"}, - {"exit", jt_quit, 0, "quit"}, - {"quit", jt_quit, 0, "quit"}, + {"exit", Parser_quit, 0, "quit"}, + {"quit", Parser_quit, 0, "quit"}, + {"--version", Parser_version, 0, + "output build version of the utility and exit"}, - /* Network configuration commands */ - {"===== network config =====", jt_noop, 0, "network config"}, + /* Network configuration commands */ + {"===== network config =====", jt_noop, 0, "network config"}, {"--net", jt_opt_net, 0,"run after setting network to \n" "usage: --net "}, {"network", jt_ptl_network, 0, "configure LNET" @@ -464,7 +461,7 @@ int lctl_main(int argc, char **argv) if (dbg_initialize(argc, argv) < 0) exit(3); - Parser_init("lctl > ", cmdlist); + Parser_init("lctl > ", cmdlist); if (argc > 1) { rc = Parser_execarg(argc - 1, argv + 1, cmdlist);