sim-card
/
qemu
Archived
10
0
Fork 0

scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup

This patch updates hw/scsi-bus.c to add the PERSISTENT_RESERVE_OUT cdb
case in scsi_req_xfer_mode() to set SCSI_XFER_TO_DEV for outgoing WRITE data.

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Nicholas Bellinger 2010-06-16 06:42:58 -07:00 committed by Kevin Wolf
parent cada87c432
commit 01bedebaaf
1 changed files with 1 additions and 0 deletions

View File

@ -306,6 +306,7 @@ static void scsi_req_xfer_mode(SCSIRequest *req)
case MEDIUM_SCAN:
case SEND_VOLUME_TAG:
case WRITE_LONG_2:
case PERSISTENT_RESERVE_OUT:
req->cmd.mode = SCSI_XFER_TO_DEV;
break;
default: