raw: support discard on block devices
commitfcd9d4555252c47a337357dfce0806e5dde99d96
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Jan 2013 15:26:54 +0000 (14 16:26 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 15 Jan 2013 09:03:47 +0000 (15 10:03 +0100)
tree71de3991a898bad3054eddd106a411d0683dc7bf
parentc85191e5c9e14d65cc4281ef3b31f480227aa6dd
raw: support discard on block devices

Block devices use a ioctl instead of fallocate, so add a separate
implementation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c