Whamcloud - gitweb
LU-8066 sysfs: make ping sysfs file read and writable 13/35313/2
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 12 Dec 2018 16:19:45 +0000 (11:19 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Jul 2019 03:23:37 +0000 (03:23 +0000)
commitac54b7454c7c17353f93ef2fe122fb97a7112141
tree1131dd375a072534d6f7d51028dc764c8cf07cd9
parent31f3bfb87ef02dd6c7f56f897a293406e846c4d9
LU-8066 sysfs: make ping sysfs file read and writable

Starting with 4.15 kernels any sysfs read only is limited to
root access only. To retain the ability for non root users
to detect if a remote server is alive using the 'ping' sysfs
file we need to change it to writable. Retain the read ability
so older tools will work.

Lustre-change: https://review.whamcloud.com/33776
Lustre-commit: 6bbae72c6900dbd2b853d716bc4d456dc7fd586e

Change-Id: I6560c119328d723a20a2b32e1fa8c68dce5d407a
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33776
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-on: https://review.whamcloud.com/35313
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
lustre/include/lprocfs_status.h
lustre/mdc/lproc_mdc.c
lustre/mgc/lproc_mgc.c
lustre/osc/lproc_osc.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c