block: add discard support
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Dec 2010 18:36:31 +0000 (19:36 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:11:03 +0000 (16:11 +0100)
commitd54f28d2875d7743267fe094b987042c8d6f8da5
tree3869081b39a96da24bff96e06099794960dd9ccf
parent3f0854e8b659c2b7087f04d4f0e4bf3d123b8048
block: add discard support

Add a new bdrv_discard method to free blocks in a mapping image, and a new
drive property to set the granularity for these discard.  If no discard
granularity support is set discard support is disabled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
block/raw.c
block_int.h