Am 10.12.2015 um 09:55 schrieb Paolo Bonzini:
On 10/12/2015 03:59, Zhu Lingshan wrote:
-if (task == NULL || task->status != SCSI_STATUS_GOOD) {
+if ((rc16 != NULL) && ((task == NULL) || (task->status !=
SCSI_STATUS_GOOD))) {
+error_setg(errp, "iSCSI: failed to send
On 10/12/2015 03:59, Zhu Lingshan wrote:
> -if (task == NULL || task->status != SCSI_STATUS_GOOD) {
> +if ((rc16 != NULL) && ((task == NULL) || (task->status !=
> SCSI_STATUS_GOOD))) {
> +error_setg(errp, "iSCSI: failed to send readcapacity16 command.");
> +}
You need an
This Patch would fix a bug that readcapacity10
failuare would be shown no matter readcapacy10
or readcapacity16 actually sent.
Signed-off-by: Zhu Lingshan
---
block/iscsi.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/block/iscsi.c b/block/iscsi.c