Whamcloud - gitweb
LU-9680 utils: new llapi_param_display_value(). 91/49491/7
authorJames Simmons <jsimmons@infradead.org>
Thu, 12 Jan 2023 14:02:54 +0000 (09:02 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jan 2023 00:31:43 +0000 (00:31 +0000)
commitba0d5ffc1c0eaa0ac0b59cacc992928e80a15bf2
tree7a8fe014333f44f39b46ea9ddf809f7da5cf0267
parent178988d67aa2f83aa65badc81e305fac0328838d
LU-9680 utils: new llapi_param_display_value().

Currently the special YAML handling is done in lustre_cfg.c
for param handling. Other functionality internal to
liblustreapi.so will use this as well so move the handling
internal to liblustreapi.so. Currently we only make the new
llapi_param_display_value() function visible only to the
liblustreapi internal code. Later when we support /sys access
we can make this available for general use.

The "lctl get_param" and "lctl list_param" generally worked
for non-root users, but not for parameters under
/sys/kernel/debug due to permission changes in the kernel.
We still lacked proper non-root access for lctl get_param and
lctl list_param. Implement full lctl get_param functionality
for non-root users. Also make lctl list_param work for
non-root users. These changes will also work with any
parameters implemented with Netlink.

Change-Id: Ifd9aad16decb0803a336314d4dea38664ff41aa4
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49491
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/Makefile.am
lustre/doc/lctl-device_list.8 [new file with mode: 0644]
lustre/doc/lctl-dl.8 [new file with mode: 0644]
lustre/doc/lctl-get_param.8
lustre/utils/Makefile.am
lustre/utils/lctl.c
lustre/utils/liblustreapi_param.c
lustre/utils/lustre_cfg.c
lustre/utils/lustreapi_internal.h
lustre/utils/obdctl.h