Whamcloud - gitweb
LU-7437 lctl: list_param -R can't work correctly 23/17223/4
authorEmoly Liu <emoly.liu@intel.com>
Mon, 23 Nov 2015 07:30:10 +0000 (15:30 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 4 Dec 2015 17:59:04 +0000 (17:59 +0000)
commit2d1103558c8c26030df592589f3e8ebc299fbe48
tree54cf4c96931fd929b72fe9b73ed3b61b0830f4c8
parentf4ea6cd384f152c04c478bf19278130802ad8e67
LU-7437 lctl: list_param -R can't work correctly

We shouldn't call lprocfs_param_pattern() inside listparam_display(),
otherwise it will add the prefix "/proc/{fs,sys}/{lnet,lustre}" each
time, so that the parameters can be listed recursively. The similar
issue in {set/get}param is fixed as well.

Also, this patch adds sanity.sh test_401 to verify this function.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I21acec364cdbdfc025979153f66a87d44c9136e8
Reviewed-on: http://review.whamcloud.com/17223
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh
lustre/utils/lustre_cfg.c