*
*/
-
#include <stdlib.h>
#include <stdio.h>
"disconnect - break connection to device"},
/* Session operations */
- {"create", jt_obd_create, 0, "create [count [mode [verbose]]]"},
- {"destroy", jt_obd_destroy, 0, "destroy <id>"},
+ {"create", jt_obd_create, 0, "create <count> [mode [verbose]]"},
+ {"destroy", jt_obd_destroy, 0, "destroy <id> [count [verbose]]"},
{"getattr", jt_obd_getattr, 0, "getattr <id>"},
{"setattr", jt_obd_setattr, 0, "setattr <id> <mode>"},
{"newconn", jt_obd_newconn, 0, "newconn <olduuid> [newuuid]"},
{"test_getattr", jt_obd_test_getattr, 0, "test_getattr <count> [verbose [[t]objid]]"},
+ {"test_setattr", jt_obd_test_setattr, 0, "test_setattr <count> [verbose [[t]objid]]"},
{"test_brw", jt_obd_test_brw, 0, "test_brw [t]<count> [write [verbose [pages [[t]objid]]]]"},
- {"test_ldlm", jt_obd_test_ldlm, 0, "test lock manager (no args)"},
{"dump_ldlm", jt_obd_dump_ldlm, 0, "dump all lock manager state (no args)"},
/* User interface commands */
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;
}