Re: [Qemu-devel] [PATCH v3] iscsi: Translate scsi sense into error code

2015-11-05 Thread Peter Lieven
Am 05.11.2015 um 06:00 schrieb Fam Zheng: > 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

Re: [Qemu-devel] [PATCH v3] iscsi: Translate scsi sense into error code

2015-11-05 Thread Paolo Bonzini
On 05/11/2015 06:00, Fam Zheng wrote: > 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

[Qemu-devel] [PATCH v3] iscsi: Translate scsi sense into error code

2015-11-04 Thread Fam Zheng
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