Whamcloud - gitweb
LU-3789 mgs: Add deprecation warning for "lctl conf_param"
[fs/lustre-release.git] / lustre / utils / lctl.c
index b86a378..fa1063a 100644 (file)
@@ -134,10 +134,14 @@ 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=<secs>\n"},
+#if LUSTRE_VERSION >= OBD_OCD_VERSION(3,0,53,0)
+#warning "remove conf_param option"
+#else
         {"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] <target.keyword=val>\n"
          "  -d  Remove the permanent setting."},
+#endif
         {"local_param", jt_lcfg_param, 0, "set a temporary, local param\n"
          "usage: local_param <target.keyword=val>\n"},
         {"get_param", jt_lcfg_getparam, 0, "get the Lustre or LNET parameter\n"
@@ -150,10 +154,13 @@ command_t cmdlist[] = {
          "  -F  When -N specified, add '/', '@' or '=' for directories,\n"
          "      symlinks and writeable files, respectively."},
         {"set_param", jt_lcfg_setparam, 0, "set the Lustre or LNET parameter\n"
-         "usage: set_param [-n] <param_path1=value1 param_path2=value2 ...>\n"
-         "Set the value of the Lustre or LNET parameter at the specified path\n"
-         "  -n  Disable printing of the key name when printing values."},
-        {"list_param", jt_lcfg_listparam, 0,
+        "usage: set_param [-n] [-P] [-d]"
+        "<param_path1=value1 param_path2=value2 ...>\n"
+        "Set the value of the Lustre or LNET parameter at the specified path.\n"
+        "  -n  Disable printing of the key name when printing values.\n"
+        "  -P  Set the parameter permanently, filesystem-wide.\n"
+        "  -d  Remove the permanent setting (only with -P option).\n"},
+       {"list_param", jt_lcfg_listparam, 0,
          "list the Lustre or LNET parameter name\n"
          "usage: list_param [-F|-R] <param_path1 param_path2 ...>\n"
          "List the name of Lustre or LNET parameter from the specified path.\n"
@@ -402,7 +409,7 @@ command_t cmdlist[] = {
          "usage: del_interface [ip]"},
         {"add_route", jt_ptl_add_route, 0,
          "add an entry to the portals routing table\n"
-         "usage: add_route <gateway> <target> [<target>]"},
+        "usage: add_route <gateway> [<hops> [<priority>]]"},
         {"del_route", jt_ptl_del_route, 0,
          "delete route via gateway to targets from the portals routing table\n"
          "usage: del_route <gateway> [<target>] [<target>]"},