raw-posix: add discard support
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Dec 2010 10:41:15 +0000 (11:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:11:03 +0000 (16:11 +0100)
commit05b3e465e5146927536b87a80cfc7e4cfa9dfbe7
treed888752e951bfea5d798eedc392d516a0e68f4d7
parent17657c934db45999fb03a01ce72b35e74cb19121
raw-posix: add discard support

Add support to discard blocks in a raw image residing on an XFS filesystem
by calling the XFS_IOC_UNRESVSP64 ioctl to punch holes.  Support for other
hole punching mechanisms can be added when they become available.

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