summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-09-14 15:25:56 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-19 11:34:34 +0200
commit1b8f8a6f9190996c617a177acc3b8fd7dff87e24 (patch)
tree3debfc99f6133e7cba56f33674ea0037f298dc1d /hw
parent074abad3264bf2bb7cfd279b7457416b318716ca (diff)
downloadqemu-1b8f8a6f9190996c617a177acc3b8fd7dff87e24.tar.gz
qemu-1b8f8a6f9190996c617a177acc3b8fd7dff87e24.tar.bz2
qemu-1b8f8a6f9190996c617a177acc3b8fd7dff87e24.zip
scsi-generic: do not disable FUA
I found no rationale for this in the logs, and it is quite bad because it will make scsi-generic unsafe WRT power failures. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/scsi-generic.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 5ce01afdce..8f6b70df2b 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -244,12 +244,6 @@ static uint8_t *scsi_get_buf(SCSIRequest *req)
static void scsi_req_fixup(SCSIRequest *req)
{
switch(req->cmd.buf[0]) {
- case WRITE_10:
- req->cmd.buf[1] &= ~0x08; /* disable FUA */
- break;
- case READ_10:
- req->cmd.buf[1] &= ~0x08; /* disable FUA */
- break;
case REWIND:
case START_STOP:
if (req->dev->type == TYPE_TAPE) {