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 <lszhu@suse.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
34f22fc034
commit
240125bc49
@ -1270,7 +1270,7 @@ static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp)
|
|||||||
&& retries-- > 0);
|
&& retries-- > 0);
|
||||||
|
|
||||||
if (task == NULL || task->status != SCSI_STATUS_GOOD) {
|
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 ||
|
} else if (!iscsilun->block_size ||
|
||||||
iscsilun->block_size % BDRV_SECTOR_SIZE) {
|
iscsilun->block_size % BDRV_SECTOR_SIZE) {
|
||||||
error_setg(errp, "iSCSI: the target returned an invalid "
|
error_setg(errp, "iSCSI: the target returned an invalid "
|
||||||
|
Loading…
Reference in New Issue
Block a user