Whamcloud - gitweb
LU-7004 obd: make LCFG_SET_PARAM functional 07/31207/2
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 13 Dec 2017 20:05:56 +0000 (15:05 -0500)
committerJohn L. Hammond <john.hammond@intel.com>
Fri, 9 Feb 2018 21:36:17 +0000 (21:36 +0000)
commitd7f9f2130c5d8c74004f36aa68938df57778a6b1
tree86a2b262c1b2544293e89e08d5e06d3e9ec5f4a4
parente8757177715993bf38f732808af1957cc30f0fd1
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>
lustre/include/lustre_disk.h
lustre/include/obd_class.h
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/obdclass/llog_swab.c
lustre/obdclass/obd_mount.c
lustre/ptlrpc/sec_config.c