scsi-disk: support WRITE SAME (16) with unmap bit
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Dec 2010 18:36:43 +0000 (19:36 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:11:03 +0000 (16:11 +0100)
commitf3114de79a4e96c279d2a6fa5e52bd18f30a343f
treece5da39decfbf43ca98d7a836043bfc86ab147c8
parentd54f28d2875d7743267fe094b987042c8d6f8da5
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 <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-defs.h
hw/scsi-disk.c