Whamcloud - gitweb
LU-7353 utils: fix lctl usage messages 80/16980/3
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 28 Oct 2015 20:06:13 +0000 (14:06 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Nov 2015 15:39:17 +0000 (15:39 +0000)
commitfa54edb5af34c3bcbf878d7498ef337ef3a1df7a
tree10d3bdb1c1a61ce9250bc0b831979b086e9d466b
parentb36954ff488844dbe581f82763b24b841de9c49f
LU-7353 utils: fix lctl usage messages

Fix the lctl usage message for sub-commands that need the LNet network
to be specified.  lctl::g_net_is_set() incorrectly recommended using
the "network" command to specify the LNet network, which is incorrect
when using lctl in command-line mode:

  # lctl peer_list
  You must run the 'network' command before 'peer_list'.
  # lctl network tcp0 peer_list
  # lctl --net tcp0 peer_list
  12345-192.168.20.1@tcp [1]192.168.40.147->mookie-gig:988 #15

Fix that to correctly recommend using the "--net" command when using
non-interactive mode, and to return an error if "network" is used in
non-interactive mode with extra arguments.

Replace mention of "portals" in help messages with "LNet".
Remove mention of obsolete elan, qsw, ra network types.

Improve the help message content for related subcommands.
Fix whitespace and command descriptions for related subcommands.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Idf9bf663b16012ebc9f38566ecba9859a54cab07
Reviewed-on: http://review.whamcloud.com/16980
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/utils/portals.c
lustre/utils/lctl.c