]> Git Repo - qemu.git/commit - hw/scsi/scsi-disk.c
scsi-disk: Fail medium writes with proper sense for readonly LUNs
authorRonnie Sahlberg <[email protected]>
Mon, 16 Jul 2012 06:53:28 +0000 (08:53 +0200)
committerPaolo Bonzini <[email protected]>
Thu, 26 Jul 2012 15:44:11 +0000 (17:44 +0200)
commit6a8a685c4d022d4edee57b0fb78c0ae1b4876478
tree8c8c862b9c2b68364f83da87c9d5f61bdca4e884
parentba6095cd6b497783e3621606b6b2320781aa3f52
scsi-disk: Fail medium writes with proper sense for readonly LUNs

Add sense code for DATA_PROTECT/WRITE_PROTECTED and return this error
for any WRITE*/WRITE_VERIFY* calls if the device is readonly=on,
i.e. write-protected

Signed-off-by: Ronnie Sahlberg <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi.h
This page took 0.023396 seconds and 4 git commands to generate.