LU-4221 osd: add case LCFG_PARAM to osd_process_config
Some proc parameters were moved from ofd to osd module and only
their symlinks were kept in ofd for interoperability/compatibility.
To process this kind of config params passed by ofd, this patch is
to do the following fixes:
- add case LCFG_PARAM to osd_process_config() to process parameters
with prefix both PARAM_OSD and PARAM_OST.
- since these parameters are not included by the static lprocfs var
list, a pre-check is added for them to avoid "unknown param" error
message confuses the uses. If they are matched in this check, they
will be passed to the osd directly.
- get rid of lprocfs_osd_init_vars() and use struct lprocfs_vars
lprocfs_osd_{obd,module}_vars[] instead.
- improve the error messages in class_process_proc_param() and
class_process_proc_seq_param() a little.
- add conf-sanity.sh test_28a to verify the patch and skip this test
for ZFS OSTs since ZFS has no such kind of parameters.
This is a backport of commit
b1491d26271f074dc6f99cde037403337c0b2151
in http://review.whamcloud.com/8238 .
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Signed-off-by: Michael MacDonald <mjmac@whamcloud.com>
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I8b8d4244f90bd9e16acdccedd09da73fbb5e501b
Reviewed-on: http://review.whamcloud.com/8618
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Tested-by: Michael MacDonald <michael.macdonald@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>