Skip to contentSkip to conversation

scsi-bus: Remove tape command from scsi_req_xfer

PATCH Applied Alex Pyrgiotis 2 participants 2 messages Mar 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi-bus: Remove tape command from scsi_req_xfer

Remove the RECOVER_BUFFERED_DATA command from the list of commands that are handled by scsi_req_xfer(). Given that this command is tape-specific, it should be handled only by scsi_stream_req_xfer().

hw/scsi/scsi-bus.c +0 -1
index 6dcdbc0..a21752b 100644
@@ -989,7 +989,6 @@ static int scsi_req_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf)
         }
         /* fall through */
     case READ_10:
-    case RECOVER_BUFFERED_DATA:
     case READ_12:
     case READ_16:
         cmd->xfer *= dev->blocksize;
Signature · 1 line
2.1.4
#1 lore raw
Quoted 12 lines · Alex Pyrgiotis

Remove the RECOVER_BUFFERED_DATA command from the list of commands that are handled by scsi_req_xfer(). Given that this command is tape-specific, it should be handled only by scsi_stream_req_xfer().

hw/scsi/scsi-bus.c +0 -0
index 6dcdbc0..a21752b 100644

hw/scsi/scsi-bus.c static int scsi_req_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf) · line 994

Quoted 7 lines
hw/scsi/scsi-bus.c +0 -1
@@ -989,7 +989,6 @@ static int scsi_req_xfer(SCSICommand *cmd, SCSIDevice *dev, uint8_t *buf)
         }
         /* fall through */
     case READ_10:
-    case RECOVER_BUFFERED_DATA:
     case READ_12:
     case READ_16:
         cmd->xfer *= dev->blocksize;

Queued, thanks.

Paolo