X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fobdctl.c;h=b67f8f168c1d8fb79d33c06df2c936af464df793;hb=25030215646c356ac90d604643c86d3d985b113e;hp=b34504db1f659b9d79b3023f3c246e1906f4c638;hpb=e3f2357691bc326eb8bf2d0d9bc556b8d0b36493;p=fs%2Flustre-release.git diff --git a/lustre/utils/obdctl.c b/lustre/utils/obdctl.c index b34504d..b67f8f1 100644 --- a/lustre/utils/obdctl.c +++ b/lustre/utils/obdctl.c @@ -64,8 +64,8 @@ command_t cmdlist[] = { "disconnect - break connection to device"}, /* Session operations */ - {"create", jt_obd_create, 0, "create [count [mode [verbose]]]"}, - {"destroy", jt_obd_destroy, 0, "destroy "}, + {"create", jt_obd_create, 0, "create [mode [verbose]]"}, + {"destroy", jt_obd_destroy, 0, "destroy [count [verbose]]"}, {"getattr", jt_obd_getattr, 0, "getattr "}, {"setattr", jt_obd_setattr, 0, "setattr "}, {"newconn", jt_obd_newconn, 0, "newconn [newuuid]"}, @@ -91,13 +91,14 @@ int main(int argc, char **argv) if (obd_initialize(argc, argv) < 0) exit(1); + Parser_init("obdctl > ", cmdlist); + if (argc > 1) { rc = Parser_execarg(argc - 1, argv + 1, cmdlist); } else { - Parser_init("obdctl > ", cmdlist); rc = Parser_commands(); } - obd_cleanup(argc, argv); + obd_finalize(argc, argv); return rc; }