]> git.proxmox.com Git - mirror_qemu.git/commit
block: Lift some BDS functions to the BlockBackend
authorMax Reitz <mreitz@redhat.com>
Thu, 5 Feb 2015 18:58:10 +0000 (13:58 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:18 +0000 (15:07 +0000)
commit1ef01253eb90d0c69129c817e85fa92f9d45602a
tree55c587f71c10022f97ad90d7c9808d01975b7b56
parent723bfab5cb229436ab31498a19aed931723cd3be
block: Lift some BDS functions to the BlockBackend

Create the blk_* counterparts for the following bdrv_* functions (which
make sense to call on the BlockBackend level):
- bdrv_co_write_zeroes()
- bdrv_write_compressed()
- bdrv_truncate()
- bdrv_nb_sectors()
- bdrv_discard()
- bdrv_load_vmstate()
- bdrv_save_vmstate()

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1423162705-32065-2-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h