iscsi: send readcapacity10 when readcapacity16 failed
commit1cb6d137ffd380c458be2da24a58404708c0db55
authorZhu Lingshan <lszhu@suse.com>
Tue, 29 Dec 2015 03:32:14 +0000 (29 11:32 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Jan 2016 17:58:01 +0000 (15 18:58 +0100)
tree90bf29bc4e72a41a93ea32fac95e0742bdb73981
parent46f296cd3a3ebc3d30e2dbc1da7c4882e3d35ce5
iscsi: send readcapacity10 when readcapacity16 failed

When play with Dell MD3000 target, for sure it
is a TYPE_DISK, but readcapacity16 would fail.
Then we find that readcapacity10 succeeded. It
looks like the target just support readcapacity10
even through it is a TYPE_DISK or have some
TYPE_ROM characteristics.

This patch can give a chance to send
readcapacity16 when readcapacity10 failed.
This patch is not harmful to original pathes

Signed-off-by: Zhu Lingshan <lszhu@suse.com>
Message-Id: <1451359934-9236-1-git-send-email-lszhu@suse.com>
[Don't fall through on UNIT ATTENTION. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c