OSDN Git Service

block: Add Error parameter to bdrv_find_protocol()
authorMax Reitz <mreitz@redhat.com>
Thu, 5 Feb 2015 18:58:12 +0000 (13:58 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:18 +0000 (15:07 +0000)
commitb65a5e12a4136b20f9d06675d597b52d64ac903c
tree1862586786ade94a6852bdd63ea1cfbb8d164037
parentca49a4fdb39d7b00b20e8500cba11aedc87755bd
block: Add Error parameter to bdrv_find_protocol()

The argument given to bdrv_find_protocol() is just a file name, which
makes it difficult for the caller to reconstruct what protocol
bdrv_find_protocol() was hoping to find. This patch adds an Error
parameter to that function to solve this issue.

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1423162705-32065-4-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
block/sheepdog.c
include/block/block.h
qemu-img.c
tests/qemu-iotests/051.out