summaryrefslogtreecommitdiff
path: root/qga
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-11-05 13:00:09 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-05 14:42:19 +0100
commite01dd3da5cf9aa90ae844d3b86c2c2762066edac (patch)
tree88af7d1274816f93d8f60f86935abf564fdd1608 /qga
parent6388acc853b7862761d3c2864be99033e8b62dcc (diff)
downloadqemu-e01dd3da5cf9aa90ae844d3b86c2c2762066edac.tar.gz
qemu-e01dd3da5cf9aa90ae844d3b86c2c2762066edac.tar.bz2
qemu-e01dd3da5cf9aa90ae844d3b86c2c2762066edac.zip
iscsi: Translate scsi sense into error code
Previously we return -EIO blindly when anything goes wrong. Add a helper function to parse sense fields and try to make the return code more meaningful. This also fixes the default werror configuration (enospc) when we're using qcow2 on an iscsi lun. The old -EIO not being treated as out of space error failed to trigger vm stop. Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <1446699609-11376-1-git-send-email-famz@redhat.com> [libiscsi 1.9 compatibility - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qga')
0 files changed, 0 insertions, 0 deletions