]> Git Repo - qemu.git/commitdiff
scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup
authorNicholas Bellinger <[email protected]>
Wed, 16 Jun 2010 13:42:58 +0000 (06:42 -0700)
committerKevin Wolf <[email protected]>
Tue, 22 Jun 2010 12:38:01 +0000 (14:38 +0200)
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 <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/scsi-bus.c

index 055a94d255642e7e48df6563931dce6b1dd52d61..3575ba30aef0f6547937163cf30c15f3c1218ae3 100644 (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:
This page took 0.023827 seconds and 4 git commands to generate.