From ea3bd56f56822350bbb91518b3d786948f573359 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 16 Dec 2010 19:36:43 +0100 Subject: scsi-disk: support WRITE SAME (16) with unmap bit Support discards via the WRITE SAME command with the unmap bit set, and tell the initiator about the support for it via the block limit and the new thin provisioning EVPD pages. Also fix the comment which incorrectly describedthe block limits EVPD page. Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- hw/scsi-defs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/scsi-defs.h') diff --git a/hw/scsi-defs.h b/hw/scsi-defs.h index 1473ecbddc..413cce07b5 100644 --- a/hw/scsi-defs.h +++ b/hw/scsi-defs.h @@ -84,6 +84,7 @@ #define MODE_SENSE_10 0x5a #define PERSISTENT_RESERVE_IN 0x5e #define PERSISTENT_RESERVE_OUT 0x5f +#define WRITE_SAME_16 0x93 #define MAINTENANCE_IN 0xa3 #define MAINTENANCE_OUT 0xa4 #define MOVE_MEDIUM 0xa5 -- cgit v1.2.3