"--threads <threads> <devno> <command [args ...]>"},
/* Device configuration commands */
- {"lovconfig", jt_obd_lov_config, 0, "configure lov data on MDS "
+ {"lov_setconfig", jt_obd_lov_setconfig, 0, "configure lov data on MDS "
"[usage: lovconfig lov-uuid stripecount, stripesize, pattern, UUID1, [UUID2, ...]"},
{"list", jt_obd_list, 0, "list the devices (no args)"},
{"newdev", jt_obd_newdev, 0, "set device to a new unused obd (no args)"},
"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]"},
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;
}