[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/4] ISCSI: Only call READCAPACITY16 for SBC devices
From: |
Ronnie Sahlberg |
Subject: |
[Qemu-devel] [PATCH 1/4] ISCSI: Only call READCAPACITY16 for SBC devices |
Date: |
Sat, 26 May 2012 14:56:38 +1000 |
Signed-off-by: Ronnie Sahlberg <address@hidden>
---
block/iscsi.c | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/block/iscsi.c b/block/iscsi.c
index df0b6c8..39d75cb 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -727,13 +727,20 @@ iscsi_inquiry_cb(struct iscsi_context *iscsi, int status,
void *command_data,
scsi_free_scsi_task(task);
- task = iscsi_readcapacity16_task(iscsi, itask->iscsilun->lun,
+ switch (itask->iscsilun->type) {
+ case TYPE_DISK:
+ task = iscsi_readcapacity16_task(iscsi, itask->iscsilun->lun,
iscsi_readcapacity16_cb, opaque);
- if (task == NULL) {
- error_report("iSCSI: failed to send readcapacity16 command.");
- itask->status = 1;
+ if (task == NULL) {
+ error_report("iSCSI: failed to send readcapacity16 command.");
+ itask->status = 1;
+ itask->complete = 1;
+ return;
+ }
+ break;
+ default:
+ itask->status = 0;
itask->complete = 1;
- return;
}
}
--
1.7.3.1
- [Qemu-devel] [PATCH 0/4] ISCSI: Passthough updates, Ronnie Sahlberg, 2012/05/26
- [Qemu-devel] [PATCH 1/4] ISCSI: Only call READCAPACITY16 for SBC devices,
Ronnie Sahlberg <=
- [Qemu-devel] [PATCH 2/4] ISCSI: Use READCAPACITY10 for MMC devices, Ronnie Sahlberg, 2012/05/26
- [Qemu-devel] [PATCH 3/4] ISCSI: Only use READ16 for SBC devices. Use READ10 for other device types such as MMC, Ronnie Sahlberg, 2012/05/26
- [Qemu-devel] [PATCH 4/4] ISCSI: If the device we open is a SMC device, then force the use of sg. We dont have any medium changer emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway., Ronnie Sahlberg, 2012/05/26
- Re: [Qemu-devel] [PATCH 4/4] ISCSI: If the device we open is a SMC device, then force the use of sg. We dont have any medium changer emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway., Paolo Bonzini, 2012/05/26
- Re: [Qemu-devel] [PATCH 4/4] ISCSI: If the device we open is a SMC device, then force the use of sg. We dont have any medium changer emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway., Andreas Färber, 2012/05/27
- Re: [Qemu-devel] [PATCH 4/4] ISCSI: If the device we open is a SMC device, then force the use of sg. We dont have any medium changer emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway., Paolo Bonzini, 2012/05/28
- Re: [Qemu-devel] [PATCH 4/4] ISCSI: If the device we open is a SMC device, then force the use of sg. We dont have any medium changer emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway., ronnie sahlberg, 2012/05/28
- Re: [Qemu-devel] [PATCH 4/4] ISCSI: If the device we open is a SMC device, then force the use of sg. We dont have any medium changer emulation so only passthrough via real sg or scsi-generic via iscsi would work anyway., Paolo Bonzini, 2012/05/28
Re: [Qemu-devel] [PATCH 0/4] ISCSI: Passthough updates, Paolo Bonzini, 2012/05/26