]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add possibility to prepare top image only for attachment via blockdev
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jul 2019 08:35:09 +0000 (10:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jul 2019 11:21:32 +0000 (13:21 +0200)
commitdfc980ab973c2c13db866bc1ea8e9dffbced3afd
tree259319db4e6f3cb13c9dc85cdfadd39bf7c3ed1e
parent6115b5e7d046545647b6aa630f48511da820eba3
qemu: Add possibility to prepare top image only for attachment via blockdev

qemuBuildStorageSourceChainAttachPrepareBlockdev prepares the full
backing chain for attachment via blockdev. For snapshots we'll need to
prepare one image only as it needs to be plugged on top of the existing
chain.

This patch introduces qemuBuildStorageSourceChainAttachPrepareBlockdevTop
which prepares only @top similarly to the original function by splitting
out the functionality into an internal function so that the API does not
change.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h