Skip to contentSkip to conversation

iscsi: fix readcapacity error message

PATCH Applied Zhu Lingshan 3 participants 3 messages Dec 16, 2015 – Jan 10, 2016 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
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
In reply to Zhu Lingshan
Quoted 2 lines · Zhu Lingshan

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

Applied to -trivial, thanks!

/mjt