diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-07-16 08:53:28 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-26 17:44:11 +0200 |
commit | 6a8a685c4d022d4edee57b0fb78c0ae1b4876478 (patch) | |
tree | 8c8c862b9c2b68364f83da87c9d5f61bdca4e884 /host-utils.c | |
parent | ba6095cd6b497783e3621606b6b2320781aa3f52 (diff) |
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 <ronniesahlberg@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'host-utils.c')
0 files changed, 0 insertions, 0 deletions