On Thursday, 06/08/2006 at 04:33 ZE2, Rob van der Heij
<[EMAIL PROTECTED]> wrote:
> Because the DASD architecture does not have a means to tell the host
> that someone has flipped the "write disable" switch on the device.

Not quite true, Sir!  You find out when you try to write.  :-)  You will
get a Unit Check with Write Inhibit in byte 1 of the sense data.   The
host could, in theory, decide whether that UC is really an error
(...,rw,...) or not (...,ro,...).
Unfortunately the Write Inhibit indicator is not part of the non-UC sense
data so you can't know in advance.
For z/VM, diagnose 0x210 tells you whether the device is RO or RW.
Alan Altmark
z/VM Development
IBM Endicott

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to