diff options
author | Max Reitz | 2020-05-13 13:05:23 +0200 |
---|---|---|
committer | Kevin Wolf | 2020-05-18 19:05:25 +0200 |
commit | 48e082886132f49e883d96ce39fb926f53868e26 (patch) | |
tree | 1215d76d3ebc5b465fd10fc2db663190b0106da5 /include/block | |
parent | block: Unify bdrv_child_cb_attach() (diff) | |
download | qemu-48e082886132f49e883d96ce39fb926f53868e26.tar.gz qemu-48e082886132f49e883d96ce39fb926f53868e26.tar.xz qemu-48e082886132f49e883d96ce39fb926f53868e26.zip |
block: Unify bdrv_child_cb_detach()
Make bdrv_child_cb_detach() call bdrv_backing_detach() for children with
a COW role (and drop the reverse call from bdrv_backing_detach()), so it
can be used for any child (with a proper role set).
Because so far no child has a proper role set, we need a temporary new
callback for child_backing.detach that ensures bdrv_backing_detach() is
called for all COW children that do not have their role set yet.
(Also, move bdrv_child_cb_detach() down to group it with
bdrv_inherited_options() and bdrv_child_cb_attach().)
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200513110544.176672-14-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions