summaryrefslogtreecommitdiff
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-01-23 13:57:21 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-02-22 10:02:23 +0100
commit703dd81aca15ef1d91dba013b6b66c6e3ff88628 (patch)
treed121e340885b7b410bf323b9307685af5dc656f8 /include/hw/scsi
parentc5f52875b980e54e6bebad6121c76863356e1d7f (diff)
downloadqemu-703dd81aca15ef1d91dba013b6b66c6e3ff88628.zip
scsi: report thin provisioning errors with werror=report
SCSI defines a status code for when a thin-provisioned LUNs would exceed the allocated space, map ENOSPC to it. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r--include/hw/scsi/scsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h
index ca66454c4c..e5fc39d504 100644
--- a/include/hw/scsi/scsi.h
+++ b/include/hw/scsi/scsi.h
@@ -223,6 +223,8 @@ extern const struct SCSISense sense_code_REPORTED_LUNS_CHANGED;
extern const struct SCSISense sense_code_DEVICE_INTERNAL_RESET;
/* Data Protection, Write Protected */
extern const struct SCSISense sense_code_WRITE_PROTECTED;
+/* Data Protection, Space Allocation Failed Write Protect */
+extern const struct SCSISense sense_code_SPACE_ALLOC_FAILED;
#define SENSE_CODE(x) sense_code_ ## x