Patchwork [2/2] SCSI emulation: should tell the guest that we actually support thin provisioning

login
register
mail settings
Submitter ronniesahlberg@gmail.com
Date April 19, 2012, 10:41 a.m.
Message ID <1334832077-20132-3-git-send-email-ronniesahlberg@gmail.com>
Download mbox | patch
Permalink /patch/153718/
State New
Headers show

Comments

ronniesahlberg@gmail.com - April 19, 2012, 10:41 a.m.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
---
 hw/scsi-disk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c
index ccd9291..d6c197f 100644
--- a/hw/scsi-disk.c
+++ b/hw/scsi-disk.c
@@ -532,7 +532,7 @@  static int scsi_disk_emulate_inquiry(SCSIRequest *req, uint8_t *outbuf)
             outbuf[3] = buflen = 8;
             outbuf[4] = 0;
             outbuf[5] = 0x60; /* write_same 10/16 supported */
-            outbuf[6] = 0;
+            outbuf[6] = 2;    /* thin provisioning */
             outbuf[7] = 0;
             break;
         }