iscsi: fix readcapacity error message
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.
Signed-off-by Zhu Lingshan <[email protected]>
--- block/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 "
Signature · 1 line
2.6.2
Quoted 14 lines · Zhu Lingshan
fix:The error message for readcapacity 16 incorrectly mentioned a readcapacity 10 failure, fixed the error message.
Signed-off-by Zhu Lingshan <[email protected]>--- block/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)block/iscsi.c +0
-0
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 "
Reviewed-by John Snow <[email protected]>
Michael Tokarev
AppliedQuoted 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