summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorManos Pitsidianakis2017-07-13 17:30:28 +0200
committerKevin Wolf2017-09-04 18:31:13 +0200
commitf7cc69b326850c34db5dca2f9f74898cd181f43a (patch)
treead7fd5018f1a5f3c903ba3ada403fc230dab4a6b /blockdev.c
parentblock: remove bdrv_truncate callback in blkdebug (diff)
downloadqemu-f7cc69b326850c34db5dca2f9f74898cd181f43a.tar.gz
qemu-f7cc69b326850c34db5dca2f9f74898cd181f43a.tar.xz
qemu-f7cc69b326850c34db5dca2f9f74898cd181f43a.zip
block: add default implementations for bdrv_co_get_block_status()
bdrv_co_get_block_status_from_file() and bdrv_co_get_block_status_from_backing() set *file to bs->file and bs->backing respectively, so that bdrv_co_get_block_status() can recurse to them. Future block drivers won't have to duplicate code to implement this. Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions