Whamcloud - gitweb
LU-8066 obdclass: report all obd states for OBD_IOC_GETDEVICE 74/33774/5
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 6 Dec 2018 16:19:59 +0000 (11:19 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Jan 2019 04:46:30 +0000 (04:46 +0000)
commitadfec49f334daf244b82007971f445e923051062
tree0560f538c378350e5d24bcca333dab66f243fc3a
parent9b924e86b27df0cb7a6f0d4c04ff96f867413485
LU-8066 obdclass: report all obd states for OBD_IOC_GETDEVICE

The wrong state '--' which is reported when the obd device is
inactive. Reporting the "IN" state cover all the information that
is provided by 'devices' debugfs file. Now all the information
from 'devices' can be collected from the lustre sysfs tree.

Change-Id: I2479b15578babeb6f45da8129ffc0de99044730a
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33774
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/class_obd.c