block: Add blk_by_dev()
authorKevin Wolf <kwolf@redhat.com>
Tue, 20 Sep 2016 11:38:40 +0000 (13:38 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Sep 2016 11:36:10 +0000 (13:36 +0200)
commit1c89e1fa2fb1414f4485a01924032ad9cdb9073d
tree881fd516e4ec8e932fc74613c02ead9da8c6a5c8
parent6bed02805666035a59daa6a46935074f6f6d507d
block: Add blk_by_dev()

This finds a BlockBackend given the device model that is attached to it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h