* [Qemu-devel] [PATCH] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands
@ 2010-09-06 14:58 Bernhard Kohl
2010-09-21 12:59 ` [Qemu-devel] " Kevin Wolf
0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Kohl @ 2010-09-06 14:58 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf, Bernhard Kohl
For the RESERVE and RELEASE commands the length must be zero
and xfer_mode must be SCSI_XFER_NONE.
Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
---
hw/scsi-bus.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index 7aa0bcd..5a3fd4b 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -208,6 +208,8 @@ static int scsi_req_length(SCSIRequest *req, uint8_t *cmd)
case SEEK_6:
case WRITE_FILEMARKS:
case SPACE:
+ case RESERVE:
+ case RELEASE:
case ERASE:
case ALLOW_MEDIUM_REMOVAL:
case VERIFY:
@@ -319,7 +321,6 @@ static void scsi_req_xfer_mode(SCSIRequest *req)
case WRITE_BUFFER:
case FORMAT_UNIT:
case REASSIGN_BLOCKS:
- case RESERVE:
case SEARCH_EQUAL:
case SEARCH_HIGH:
case SEARCH_LOW:
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands
2010-09-06 14:58 [Qemu-devel] [PATCH] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands Bernhard Kohl
@ 2010-09-21 12:59 ` Kevin Wolf
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2010-09-21 12:59 UTC (permalink / raw)
To: Bernhard Kohl; +Cc: qemu-devel
Am 06.09.2010 16:58, schrieb Bernhard Kohl:
> For the RESERVE and RELEASE commands the length must be zero
> and xfer_mode must be SCSI_XFER_NONE.
>
> Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
Thanks, applied to the block branch.
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-21 12:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-06 14:58 [Qemu-devel] [PATCH] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands Bernhard Kohl
2010-09-21 12:59 ` [Qemu-devel] " Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).