[S390] dasd: automatic recognition of read-only devices
authorStefan Weinhuber <wein@de.ibm.com>
Mon, 8 Mar 2010 11:26:24 +0000 (12:26 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 8 Mar 2010 11:26:27 +0000 (12:26 +0100)
commit33b62a30f78536b976183cc764c08038ac011e0a
tree60a18b4478c68082835fa6fee9a24bb1e7e8b312
parent584dfddfce1bd81d877f14de2b56d4bc747af821
[S390] dasd: automatic recognition of read-only devices

In z/VM it is possible to attach a device as read-only. To prevent
unintentional write requests and subsequent I/O errors, we can detect
this configuration using the z/VM DIAG 210 interface and set the
respective linux block device to read-only as well.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_3990_erp.c
drivers/s390/block/dasd_devmap.c
drivers/s390/block/dasd_diag.c
drivers/s390/block/dasd_eckd.c
drivers/s390/block/dasd_fba.c
drivers/s390/block/dasd_genhd.c
drivers/s390/block/dasd_int.h
drivers/s390/block/dasd_ioctl.c