block: remove bdrv_truncate callback in blkdebug
commitd8e12cd3227f0cb3b5558563f094088cfefb8f21
authorManos Pitsidianakis <el13635@mail.ntua.gr>
Thu, 13 Jul 2017 15:30:27 +0000 (13 18:30 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 4 Sep 2017 16:31:13 +0000 (4 18:31 +0200)
tree7804bf0202c245145d378c76fdb8a55e22b46fec
parentf024aee8673676712f7622e814f27b0f7d5bffd5
block: remove bdrv_truncate callback in blkdebug

Now that bdrv_truncate is passed to bs->file by default, remove the
callback from block/blkdebug.c and set is_filter to true. is_filter also gives
access to other callbacks that are forwarded automatically to bs->file for
filters.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c