Whamcloud - gitweb
LU-9680 obdclass: user netlink to collect devices information 18/31618/80
authorJames Simmons <jsimmons@infradead.org>
Sat, 17 Sep 2022 20:19:48 +0000 (16:19 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Oct 2022 05:36:18 +0000 (05:36 +0000)
commit86ba46c24430f67bbe0d2768f67ed0c894b2ece1
tree16a5389d230e3c016a6a398fd5eafb27cb1f3cca
parentd13cca56a5ae2ad44d8083025e37263e408b8f62
LU-9680 obdclass: user netlink to collect devices information

Our utilities can report to users a device list with various bits
of data using the debugfs file 'devices'. This debugfs file is
only by default available to root which prevents regular users
from collecting information. Enable non-root users to collect
the same information for lctl dl using netlink. The advantage of
using netlink is that it also removes the 8K ioctl limit. Add the
ability to present this data in YAML format as well.

Change-Id: I5e6378765bd2f4c415cf29b2bc54adf0e54f308b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/31618
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
lnet/utils/lnetconfig/liblnetconfig_netlink.c
lustre/doc/lctl.8
lustre/include/lustre_kernelcomm.h
lustre/include/uapi/linux/lustre/lustre_kernelcomm.h
lustre/obdclass/class_obd.c
lustre/obdclass/kernelcomm.c
lustre/tests/sanity.sh
lustre/utils/Makefile.am
lustre/utils/lctl.c
lustre/utils/lustre_cfg.c
lustre/utils/obd.c
lustre/utils/obdctl.h