scsi-disk: support WRITE SAME (16) with unmap bit
commitea3bd56f56822350bbb91518b3d786948f573359
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Dec 2010 18:36:43 +0000 (16 19:36 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:11:03 +0000 (17 16:11 +0100)
treece5da39decfbf43ca98d7a836043bfc86ab147c8
parentbb8bf76fb1c4afa116a7f11fee559b3cca671a4a
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