]> git.proxmox.com Git - mirror_qemu.git/commit
block: Use BlockBackend for image probing
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2017 17:39:24 +0000 (18:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Feb 2017 15:09:23 +0000 (16:09 +0100)
commit5696c6e350be4d7b45b68e8460da1049bc9efe0a
tree1fdfc351387e6952661e6c529ed2174afc1ecd6e
parent2d6b86af1496d534f11cf21370345139dce62fcb
block: Use BlockBackend for image probing

This fixes the use of a parent-less BdrvChild in bdrv_open_inherit() by
converting it into a BlockBackend. Which is exactly what it should be,
image probing is an external, standalone user of a node. The requests
can't be considered to originate from the format driver node because
that one isn't even opened yet.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c