X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Flctl.c;h=5c6892c28c42130b9431bbd66d84fd69a23d2793;hb=281671b5ee43c2aea5d5b708aadf10fd1df45b16;hp=3a696c0fa7da4dc78b842e00e57a0449decb4cac;hpb=0f97aec231f76ffb91ba445bd6326645e35da5b9;p=fs%2Flustre-release.git diff --git a/lustre/utils/lctl.c b/lustre/utils/lctl.c index 3a696c0..5c6892c 100644 --- a/lustre/utils/lctl.c +++ b/lustre/utils/lctl.c @@ -45,6 +45,7 @@ #include #include "obdctl.h" #include +#include static int jt_quit(int argc, char **argv) { Parser_quit(argc, argv); @@ -134,9 +135,7 @@ command_t cmdlist[] = { "abort recovery on a restarting MDT or OST device\n"}, {"set_timeout", jt_lcfg_set_timeout, 0, "usage: conf_param obd_timeout=\n"}, -#if LUSTRE_VERSION >= OBD_OCD_VERSION(3,0,53,0) -#warning "remove conf_param option" -#else +#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(3, 0, 53, 0) {"conf_param", jt_lcfg_mgsparam, 0,"set a permanent config parameter.\n" "This command must be run on the MGS node\n" "usage: conf_param [-d] \n" @@ -216,19 +215,48 @@ command_t cmdlist[] = { {"=== Pools ==", jt_noop, 0, "pool management"}, {"pool_new", jt_pool_cmd, 0, "add a new pool\n" - "usage pool_new ."}, - {"pool_add", jt_pool_cmd, 0, + "usage: pool_new ."}, + {"pool_add", jt_pool_cmd, 0, "add the named OSTs to the pool\n" - "usage pool_add . "}, + "usage: pool_add . "}, {"pool_remove", jt_pool_cmd, 0, "remove the named OST from the pool\n" - "usage pool_remove . "}, + "usage: pool_remove . "}, {"pool_destroy", jt_pool_cmd, 0, "destroy a pool\n" - "usage pool_destroy ."}, + "usage: pool_destroy ."}, {"pool_list", jt_pool_cmd, 0, "list pools and pools members\n" - "usage pool_list [.] | "}, + "usage: pool_list [.] | "}, + + /* Nodemap commands */ + {"=== Nodemap ===", jt_noop, 0, "nodemap management"}, + {"nodemap_activate", jt_nodemap_activate, 0, + "activate nodemap idmapping functions\n" + "usage: nodemap_activate"}, + {"nodemap_add", jt_nodemap_add, 0, + "add a new nodemap\n" + "usage: nodemap_add "}, + {"nodemap_del", jt_nodemap_del, 0, + "remove a nodemap\n" + "usage: nodemap_del "}, + {"nodemap_add_range", jt_nodemap_add_range, 0, + "add a range to a nodemap\n" + "usage: nodemap_add_range "}, + {"nodemap_del_range", jt_nodemap_del_range, 0, + "add a range to a nodemap\n" + "usage: nodemap_del_range "}, + {"nodemap_modify", jt_nodemap_modify, 0, + "modify a nodemap parameters" + "usage: nodemap_modify nodemap_name param value"}, + {"nodemap_add_idmap", jt_nodemap_add_idmap, 0, + "add a UID or GID mapping to a nodemap"}, + {"nodemap_del_idmap", jt_nodemap_del_idmap, 0, + "delete a UID or GID mapping from a nodemap"}, + {"nodemap_test_nid", jt_nodemap_test_nid, 0, + "usage: nodemap_test_nid "}, + {"nodemap_test_id", jt_nodemap_test_id, 0, + "Usage: nodemap_test_id --nid --idtype [uid|gid] --id "}, /* Changelog commands */ {"=== Changelogs ==", jt_noop, 0, "changelog user management"}, @@ -355,12 +383,15 @@ command_t cmdlist[] = { {"==== LFSCK ====", jt_noop, 0, "LFSCK"}, {"lfsck_start", jt_lfsck_start, 0, "start LFSCK\n" "usage: lfsck_start <-M | --device [MDT,OST]_device>\n" + " [-A | --all] [-c | --create_ostobj [swtich]]\n" " [-e | --error error_handle] [-h | --help]\n" - " [-n | --dryrun switch] [-r | --reset]\n" - " [-s | --speed speed_limit]\n" - " [-t | --type lfsck_type[,lfsck_type...]]"}, + " [-n | --dryrun [switch]] [-o | --orphan]\n" + " [-r | --reset] [-s | --speed speed_limit]\n" + " [-t | --type lfsck_type[,lfsck_type...]]\n" + " [-w | --windows win_size]"}, {"lfsck_stop", jt_lfsck_stop, 0, "stop lfsck(s)\n" - "usage: lfsck_stop <-M | --device [MDT,OST]_device> [-h | --help]"}, + "usage: lfsck_stop <-M | --device [MDT,OST]_device>\n" + " [-A | --all] [-h | --help]"}, {"==== obsolete (DANGEROUS) ====", jt_noop, 0, "obsolete (DANGEROUS)"}, /* some test scripts still use these */