Whamcloud - gitweb
LU-7796 utils: print error with valueless lctl set_param
If lctl set_param is called with space-separated arguments, and there
is a trailing parameter without a value, print an error instead of
returning silently. Also, allow values which contain equal signs when
lctl set_param is given space-separated arguments.
Print a warning message for both formats whenever the value contains
an '=' character because it is likely that the user made an error.
Also fix the return values of jt_lcfg_setparam, so they are always
negative on error.
Add tests for "lctl set_param" to verify that it returns an error when
a value is omitted in either format and to check that "lctl set_param"
accepts values which contain the '=' character in either format.
Signed-off-by: Ryan Haasken <haasken@cray.com>
Change-Id: Ie9d709c5aa533f778cc83f4b58f40fe4b084c754
Reviewed-on: http://review.whamcloud.com/18703
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>