Whamcloud - gitweb
LU-8066 sysfs: make ping sysfs file read and writable 76/33776/5
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 12 Dec 2018 16:19:45 +0000 (11:19 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Jan 2019 04:48:54 +0000 (04:48 +0000)
commit6bbae72c6900dbd2b853d716bc4d456dc7fd586e
tree13f53ce612ef957b87c74e72f4cd10b9aa49149b
parenta231148843bd4a30d962378841160602180c88d8
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.

Change-Id: I6560c119328d723a20a2b32e1fa8c68dce5d407a
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33776
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
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