Skip to content
Snippets Groups Projects
Commit 217b41d9 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch b1_6

Move block device configuration commands out of "testing (DANGEROUS)" section
of the lctl help.
b=5498
parent c53b983e
No related branches found
No related tags found
No related merge requests found
...@@ -64,10 +64,10 @@ command_t cmdlist[] = { ...@@ -64,10 +64,10 @@ command_t cmdlist[] = {
"usage: lustre_build_version"}, "usage: lustre_build_version"},
{"exit", jt_quit, 0, "quit"}, {"exit", jt_quit, 0, "quit"},
{"quit", jt_quit, 0, "quit"}, {"quit", jt_quit, 0, "quit"},
/* Network configuration commands */ /* Network configuration commands */
{"===== network config =====", jt_noop, 0, "network config"}, {"===== network config =====", jt_noop, 0, "network config"},
{"--net", jt_opt_net, 0, "run <command> after setting network to <net>\n" {"--net", jt_opt_net, 0,"run <command> after setting network to <net>\n"
"usage: --net <tcp/elan/gm/...> <command>"}, "usage: --net <tcp/elan/gm/...> <command>"},
{"network", jt_ptl_network, 0, "configure LNET" {"network", jt_ptl_network, 0, "configure LNET"
"usage: network up|down"}, "usage: network up|down"},
...@@ -81,7 +81,8 @@ command_t cmdlist[] = { ...@@ -81,7 +81,8 @@ command_t cmdlist[] = {
"usage: interface_list"}, "usage: interface_list"},
{"peer_list", jt_ptl_print_peers, 0, "print peer entries\n" {"peer_list", jt_ptl_print_peers, 0, "print peer entries\n"
"usage: peer_list"}, "usage: peer_list"},
{"conn_list", jt_ptl_print_connections, 0, "print all the connected remote nid\n" {"conn_list", jt_ptl_print_connections, 0,
"print all the connected remote nid\n"
"usage: conn_list"}, "usage: conn_list"},
{"active_tx", jt_ptl_print_active_txs, 0, "print active transmits\n" {"active_tx", jt_ptl_print_active_txs, 0, "print active transmits\n"
"usage: active_tx"}, "usage: active_tx"},
...@@ -95,7 +96,7 @@ command_t cmdlist[] = { ...@@ -95,7 +96,7 @@ command_t cmdlist[] = {
"usage: ping nid [timeout] [pid]"}, "usage: ping nid [timeout] [pid]"},
/* Device selection commands */ /* Device selection commands */
{"==== device selection ====", jt_noop, 0, "device selection"}, {"==== obd device selection ====", jt_noop, 0, "device selection"},
{"device", jt_obd_device, 0, {"device", jt_obd_device, 0,
"set current device to <name|devno>\n" "set current device to <name|devno>\n"
"usage: device <%name|$name|devno>"}, "usage: device <%name|$name|devno>"},
...@@ -105,7 +106,7 @@ command_t cmdlist[] = { ...@@ -105,7 +106,7 @@ command_t cmdlist[] = {
"usage: dl"}, "usage: dl"},
/* Device operations */ /* Device operations */
{"==== device operations ===", jt_noop, 0, "device operations"}, {"==== obd device operations ===", jt_noop, 0, "device operations"},
{"activate", jt_obd_activate, 0, "activate an import\n"}, {"activate", jt_obd_activate, 0, "activate an import\n"},
{"deactivate", jt_obd_deactivate, 0, "deactivate an import. " {"deactivate", jt_obd_deactivate, 0, "deactivate an import. "
"This command should be used on failed OSC devices in an MDT LOV.\n"}, "This command should be used on failed OSC devices in an MDT LOV.\n"},
...@@ -118,7 +119,7 @@ command_t cmdlist[] = { ...@@ -118,7 +119,7 @@ command_t cmdlist[] = {
"usage: conf_param <target.keyword=val> ...\n"}, "usage: conf_param <target.keyword=val> ...\n"},
{"local_param", jt_lcfg_param, 0, "set a temporary, local param\n" {"local_param", jt_lcfg_param, 0, "set a temporary, local param\n"
"usage: local_param <target.keyword=val> ...\n"}, "usage: local_param <target.keyword=val> ...\n"},
/* Debug commands */ /* Debug commands */
{"==== debugging control ===", jt_noop, 0, "debug"}, {"==== debugging control ===", jt_noop, 0, "debug"},
{"debug_daemon", jt_dbg_debug_daemon, 0, {"debug_daemon", jt_dbg_debug_daemon, 0,
...@@ -138,7 +139,8 @@ command_t cmdlist[] = { ...@@ -138,7 +139,8 @@ command_t cmdlist[] = {
"usage: df <input> [output]"}, "usage: df <input> [output]"},
{"clear", jt_dbg_clear_debug_buf, 0, "clear kernel debug buffer\n" {"clear", jt_dbg_clear_debug_buf, 0, "clear kernel debug buffer\n"
"usage: clear"}, "usage: clear"},
{"mark", jt_dbg_mark_debug_buf, 0,"insert marker text in kernel debug buffer\n" {"mark", jt_dbg_mark_debug_buf, 0,
"insert marker text in kernel debug buffer\n"
"usage: mark <text>"}, "usage: mark <text>"},
{"filter", jt_dbg_filter, 0, "filter message type\n" {"filter", jt_dbg_filter, 0, "filter message type\n"
"usage: filter <subsystem id/debug mask>"}, "usage: filter <subsystem id/debug mask>"},
...@@ -151,7 +153,7 @@ command_t cmdlist[] = { ...@@ -151,7 +153,7 @@ command_t cmdlist[] = {
"usage: modules <path>"}, "usage: modules <path>"},
/* Device configuration commands */ /* Device configuration commands */
{"== device setup (these are not normally used post 1.4) ==", {"== obd device setup (these are not normally used post 1.4) ==",
jt_noop, 0, "device config"}, jt_noop, 0, "device config"},
{"attach", jt_lcfg_attach, 0, {"attach", jt_lcfg_attach, 0,
"set the type, name, and uuid of the current device\n" "set the type, name, and uuid of the current device\n"
...@@ -164,11 +166,24 @@ command_t cmdlist[] = { ...@@ -164,11 +166,24 @@ command_t cmdlist[] = {
"usage: setup <args...>"}, "usage: setup <args...>"},
{"cleanup", jt_obd_cleanup, 0, "cleanup previously setup device\n" {"cleanup", jt_obd_cleanup, 0, "cleanup previously setup device\n"
"usage: cleanup [force | failover]"}, "usage: cleanup [force | failover]"},
{"dump_cfg", jt_cfg_dump_log, 0, "print log of recorded commands for this config to kernel debug log\n" {"dump_cfg", jt_cfg_dump_log, 0,
"print log of recorded commands for this config to kernel debug log\n"
"usage: dump_cfg config-uuid-name"}, "usage: dump_cfg config-uuid-name"},
/* virtual block operations */
{"==== virtual block device ====", jt_noop, 0, "virtual block device"},
{"blockdev_attach", jt_blockdev_attach, 0,
"attach a lustre regular file to a virtual block device\n"
"usage: blockdev_attach <file_name> <device_name>"},
{"blockdev_detach", jt_blockdev_detach, 0,
"detach a lustre regular file from a virtual block device\n"
"usage: blockdev_detach <device_name>"},
{"blockdev_info", jt_blockdev_info, 0,
"get the device info of a attached file\n"
"usage: blockdev_info <device_name>"},
/* Test only commands */ /* Test only commands */
{"=== testing (DANGEROUS) ==", jt_noop, 0, "testing (DANGEROUS)"}, {"==== testing (DANGEROUS) ====", jt_noop, 0, "testing (DANGEROUS)"},
{"--threads", jt_opt_threads, 0, {"--threads", jt_opt_threads, 0,
"run <threads> separate instances of <command> on device <devno>\n" "run <threads> separate instances of <command> on device <devno>\n"
"--threads <threads> <verbose> <devno> <command [args ...]>"}, "--threads <threads> <verbose> <devno> <command [args ...]>"},
...@@ -229,31 +244,20 @@ command_t cmdlist[] = { ...@@ -229,31 +244,20 @@ command_t cmdlist[] = {
"memory pressure testing\n" "memory pressure testing\n"
"usage: memhog <page count> [<gfp flags>]"}, "usage: memhog <page count> [<gfp flags>]"},
/* ============ virtual block operations =================*/ {"==== obsolete (DANGEROUS) ====", jt_noop, 0, "obsolete (DANGEROUS)"},
{"blockdev_attach", jt_blockdev_attach, 0,
"attach a lustre regular file to a virtual block device\n"
"usage: blockdev_attach <file_name> <device_name>"},
{"blockdev_detach", jt_blockdev_detach, 0,
"detach a lustre regular file from a virtual block device\n"
"usage: blockdev_detach <device_name>"},
{"blockdev_info", jt_blockdev_info, 0,
"get the device info of a attached file\n"
"usage: blockdev_info <device_name>"},
{"== obsolete (DANGEROUS) ==", jt_noop, 0, "obsolete (DANGEROUS)"},
/* some test scripts still use these */ /* some test scripts still use these */
{"cfg_device", jt_obd_device, 0, {"cfg_device", jt_obd_device, 0,
"set current device to <name>\n" "set current device to <name>\n"
"usage: device <name>"}, "usage: device <name>"},
{"recover", jt_obd_recover, 0, {"recover", jt_obd_recover, 0,
"try to restore a lost connection immediately\n" "try to restore a lost connection immediately\n"
"usage: recover [MDC/OSC device]"}, "usage: recover [MDC/OSC device]"},
/* saving for sanity 44a */ /* saving for sanity 44a */
{"lov_getconfig", jt_obd_lov_getconfig, 0, {"lov_getconfig", jt_obd_lov_getconfig, 0,
"read lov configuration from an mds device\n" "read lov configuration from an mds device\n"
"usage: lov_getconfig <mountpoint>"}, "usage: lov_getconfig <mountpoint>"},
/* Llog operations */ /* Llog operations */
{"llog_catlist", jt_llog_catlist, 0, {"llog_catlist", jt_llog_catlist, 0,
"list all catalog logs on current device.\n" "list all catalog logs on current device.\n"
"usage: llog_catlist"}, "usage: llog_catlist"},
{"llog_info", jt_llog_info, 0, {"llog_info", jt_llog_info, 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment