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)
commitdce512dedf2b842f453f8b20d6ca37ce283103da
treed888752e951bfea5d798eedc392d516a0e68f4d7
parentedff5db1f50fd89e807f3fb518c77af7531e8117
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