Skip to contentSkip to conversation

iscsi: fix readcapacity error message

PATCH In review Zhu Lingshan 2 participants 3 messages Dec 15, 2015 – Dec 16, 2015 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iscsi: fix readcapacity error message

fix:The error message for readcapacity 16 incorrectly mentioned a readcapacity 10 failure, fixed the error message.

---
 block/iscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/iscsi.c +1 -1
index bd1f1bf..eb28ddc 100644
@@ -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 "
Signature · 1 line
2.6.2
Reviewed-by on v1 1/1
#1 lore raw

CC qemu-trivial, I think this can go in through that tree.

Quoted 14 lines · Zhu Lingshan

fix:The error message for readcapacity 16 incorrectly mentioned a readcapacity 10 failure, fixed the error message.

---
 block/iscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/iscsi.c +0 -0
index bd1f1bf..eb28ddc 100644

block/iscsi.c static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp) · line 1276

Quoted 8 lines
block/iscsi.c +1 -1
@@ -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 lore raw

OK, thanks, I have sent the patch again and CC them

Quoted 27 lines · John Snow

CC qemu-trivial, I think this can go in through that tree.

Quoted 14 lines · Zhu Lingshan

fix:The error message for readcapacity 16 incorrectly mentioned a readcapacity 10 failure, fixed the error message.

---
  block/iscsi.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
block/iscsi.c +0 -0
index bd1f1bf..eb28ddc 100644

block/iscsi.c static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp) · line 1276

Quoted 8 lines
block/iscsi.c +1 -1
@@ -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 "