[libvirt] [PATCH 2/7] qemu: Add possibility to prepare top image only for attachment via blockdev

Ján Tomko jtomko at redhat.com
Wed Jul 24 18:15:06 UTC 2019


On Tue, Jul 23, 2019 at 02:08:46PM +0200, Peter Krempa wrote:
>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 at redhat.com>
>---
> src/qemu/qemu_command.c | 51 +++++++++++++++++++++++++++++++++--------
> src/qemu/qemu_command.h |  3 +++
> 2 files changed, 44 insertions(+), 10 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190724/400d8ab5/attachment-0001.sig>


More information about the libvir-list mailing list