remarkable-linux/drivers/s390
Jan Höppner b487a914f8 s390/dasd: Display read-only attribute correctly
We have two flags, DASD_FLAG_DEVICE_RO and DASD_FEATURE_READONLY, that
tell us whether a device is read-only. DASD_FLAG_DEVICE_RO is set when a
device is attached as read-only to z/VM and DASD_FEATURE_READONLY is set
when either the corresponding kernel parameter is configured, or the
read-only state is changed via sysfs.
This is valuable information in any case. However, only the feature flag
is being checked at the moment when we display the current state.

Fix this by checking both flags.

Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-06-12 16:26:00 +02:00
..
block s390/dasd: Display read-only attribute correctly 2017-06-12 16:26:00 +02:00
char s390/sclp: Detect KSS facility 2017-04-21 11:08:04 +02:00
cio Make some symbols in vfio-ccw static, as detected by sparse. 2017-05-23 07:33:57 +02:00
crypto s390/zcrypt: Add some debug messages on failure. 2017-06-12 16:25:59 +02:00
net s390/qeth: add missing hash table initializations 2017-05-11 12:37:48 -04:00
scsi SCSI misc on 20170220 2017-02-21 11:51:42 -08:00
virtio Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-05-16 09:24:44 -07:00
Makefile