LU-7004 obd: make LCFG_SET_PARAM functional
The LCFG_SET_PARAM infrastructure was meant to replace the
class_process_proc_param() functionality but various software
bugs have prevented its adoption. This patch does the following:
1) Take the better print_lustre_cfg() of the mgs module and use
that in llog_swab.c instead with the intent of exporting this
function. I add to process_param2_config() a call to
print_lustre_cfg() for debugging purposes.
2) Move obdname2fsname to obd_mount.c and make it exportable.
Expanded the functionality to work for both lctl conf_param
and lctl set_parm -P.
3) Split mgs_setparam() into two functions since the difference
in LCFG_SET_PARAM and LCFG_PARAM are large enough.
Currently virtual attributes failover.nid, sptlrpc, and quota
are not fully supported. They will be addressed in later patches.
Lustre-change: https://review.whamcloud.com/28590
Lustre-commit:
dfe60d0b98a1a888ca4ffce14788938c192b1520
Change-Id: Iced6505f39a3270139c1630270cfe1dc4a2e49ed
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31207
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>