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

2015-11-04 Thread Fam Zheng
On Wed, 11/04 21:12, Peter Lieven wrote: > Am 04.11.2015 um 02:36 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 config

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

2015-11-04 Thread Peter Lieven
Am 04.11.2015 um 02:36 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 v2] iscsi: Translate scsi sense into error code

2015-11-04 Thread Paolo Bonzini
On 04/11/2015 02:36, 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 v2] iscsi: Translate scsi sense into error code

2015-11-03 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