fix:readcapacity 10 failure was shown even 16 sent
A message that is not in the archive (sent off-list or not yet received): [email protected]
[adding qemu-devel - ALL patches must cc qemu-devel, even if they are also sent to a sublist like qemu-block]
Quoted 1 line · Zhu Lingshan
Follow Peter's comment, it is the patch V2.
This sentence should appear...
Quoted 1 line
This patch can fix that error: readcapacity 10 failure will shown even it was readcapacity16 sent.
Long line; try to keep commit messages wrapped around 72 or fewer characters, since 'git log' will display it with indentation and you still want to read it all in an 80-column window.
Subject line is a bit awkward; I suggest:
iscsi: fix readcapacity error message
The error message for readcapacity 16 incorrectly mentioned a readcapacity 10 failure.
Quoted 3 lines
Signed-off-by Zhu Lingshan <[email protected]>---
...here, since it explains why you sent v2, but will make no sense a year from now when browsing just qemu.git.
block/iscsi.c static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp) · line 1273
Quoted 13 lines
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." );
While you're touching this, please also drop the trailing '.'
Quoted 4 lines
block/iscsi.c +0
-0}else if (!iscsilun->block_size || iscsilun->block_size %BDRV_SECTOR_SIZE ) { error_setg(errp, "iSCSI: the target returned an invalid "
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org