]> Git Repo - qemu.git/commit
block: Introduce bdrv_open_child()
authorKevin Wolf <[email protected]>
Mon, 15 Jun 2015 11:24:19 +0000 (13:24 +0200)
committerKevin Wolf <[email protected]>
Tue, 14 Jul 2015 15:15:18 +0000 (17:15 +0200)
commitb4b059f628173dd1d722ee8a9c592a80aec1fc2f
treef50190479725ab2dce518cdfc432b7b0e0b43b57
parentdf5817926790f6e84d1936eab523556f96fa577a
block: Introduce bdrv_open_child()

It is the same as bdrv_open_image(), except that it doesn't only return
success or failure, but the newly created BdrvChild object for the new
child node.

As the BdrvChild object already contains a BlockDriverState pointer (and
this is supposed to become the only pointer so that bdrv_append() and
friends can just change a single pointer in BdrvChild), the pbs
parameter is removed for bdrv_open_child().

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
block.c
include/block/block.h
include/block/block_int.h
This page took 0.024129 seconds and 4 git commands to generate.