Whamcloud - gitweb
LU-11198 utils: propagate errors for read_param 25/32925/9
authorWang Shilong <wshilong@ddn.com>
Fri, 28 Sep 2018 17:31:29 +0000 (13:31 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 5 Oct 2018 22:28:10 +0000 (22:28 +0000)
commit6ca2425ccf6bf7176a37a4c93a67995479307036
treea2fcb4c83b67c1c9437813885a2ea8148d7973ed
parentcf503e047c7fe58c3f75c912b3ce8da93f79bf0e
LU-11198 utils: propagate errors for read_param

Steps to reproduce:

 $ lctl get_param -n ost.OSS.ost_io.nrs_tbf_rule
 error: get_param: reading 'ost.OSS.ost_io.nrs_tbf_rule': No such device
 $ echo $?
 0

read_param() might return errors, fix to return errors to
caller.

Change-Id: Id165424342be3109669f173b9b72c16aa8c83425
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/32925
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/tests/sanity-sec.sh
lustre/tests/sanity.sh
lustre/utils/lustre_cfg.c