qemu-img: Use BlockBackend as far as possible
commitf1d3cd792b93a7f4446517213b02c6f050a47e9d
authorMax Reitz <mreitz@redhat.com>
Thu, 5 Feb 2015 18:58:18 +0000 (5 13:58 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:18 +0000 (16 15:07 +0000)
tree7d29212a5ea947692e48864d774c6bb33c9eba4e
parent644483d97e6f7a740b5a82156fe32944573a0ed1
qemu-img: Use BlockBackend as far as possible

Although qemu-img already creates BlockBackends, it does not do accesses
to the images through them. This patch converts all of the bdrv_* calls
for which this is currently possible to blk_* calls. Most of the
remaining calls will probably stay bdrv_* calls because they really do
operate on the BDS level instead of the BB level.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1423162705-32065-10-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-img.c