Whamcloud - gitweb
LU-11850 obd: support target_obd using Netlink 06/58506/13
authorJames Simmons <jsimmons@infradead.org>
Sun, 8 Jun 2025 00:45:44 +0000 (20:45 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 3 Jul 2025 13:19:50 +0000 (13:19 +0000)
commit3c9ab551b3228f48301758d28d7179416c58ee6d
tree93476a11187eade3871e763b05786fb370a59b02
parent8ca049971bbeee62348a66eb078bde8b153ae432
LU-11850 obd: support target_obd using Netlink

Due to "target_obd" being an debugfs file normal users can't
access its contents. This breaks standard tools non-root.
Implement the same functionality using Netlink.

We don't implement it for lod since its an dt_device which
we don't have a way to find such a device like obd_devices.
The lod layer is server side so only root should have access.

Change-Id: I8fce80f6460b4b3f46106bc24d9494ae94e4fd4b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58506
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
lustre/include/lustre/lustreapi.h
lustre/include/lustre_kernelcomm.h
lustre/include/uapi/linux/lustre/lustre_kernelcomm.h
lustre/lmv/lproc_lmv.c
lustre/lod/lproc_lod.c
lustre/lov/lproc_lov.c
lustre/obdclass/kernelcomm.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_param.c
lustre/utils/lustre_param.c
lustre/utils/lustreapi_internal.h