blkdebug: Add bdrv_truncate()
commit8eedfbd4a50299f03b3630659c34ad1b01f69370
authorKevin Wolf <kwolf@redhat.com>
Tue, 14 Apr 2015 14:32:45 +0000 (14 16:32 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:09 +0000 (28 15:36 +0200)
tree9f8ca23eb8c1c40067649cf9ec293f7fe62c8cec
parente4f587492331df0ac50bad6131ea273d527af796
blkdebug: Add bdrv_truncate()

This is, amongst others, required for qemu-iotests 033 to run as
intended on VHDX, which uses explicit bdrv_truncate() calls to bs->file
when allocating new blocks.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
block/blkdebug.c