[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH V2] fix:readcapacity 10 failure was shown even 16 se
From: |
Zhu Lingshan |
Subject: |
[Qemu-block] [PATCH V2] fix:readcapacity 10 failure was shown even 16 sent |
Date: |
Mon, 14 Dec 2015 10:52:06 +0800 |
Follow Peter's comment, it is the patch V2.
This patch can fix that error: readcapacity 10 failure will shown even it was
readcapacity16 sent.
Signed-off-by: Zhu Lingshan <address@hidden>
---
block/iscsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/iscsi.c b/block/iscsi.c
index bd1f1bf..bd3473e 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -1270,7 +1270,7 @@ static void iscsi_readcapacity_sync(IscsiLun *iscsilun,
Error **errp)
&& retries-- > 0);
if (task == NULL || task->status != SCSI_STATUS_GOOD) {
- error_setg(errp, "iSCSI: failed to send readcapacity10 command.");
+ error_setg(errp, "iSCSI: failed to send readcapacity10/16 command.");
} else if (!iscsilun->block_size ||
iscsilun->block_size % BDRV_SECTOR_SIZE) {
error_setg(errp, "iSCSI: the target returned an invalid "
--
2.6.2
- [Qemu-block] [PATCH V2] fix:readcapacity 10 failure was shown even 16 sent,
Zhu Lingshan <=