]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockjob: Ensure that config disk source is identical when modifying it
authorPeter Krempa <pkrempa@redhat.com>
Wed, 24 Jul 2019 15:33:38 +0000 (17:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jul 2019 11:21:33 +0000 (13:21 +0200)
commit56ad575dbe2a7901dc135aa7bcab7b79b7c3fb57
treee90871436c3be7216a3e4465b72cf5b0c8febc1d
parentd3833b0799dbe1f0b390cc1c0f18d8cdc7756d70
qemu: blockjob: Ensure that config disk source is identical when modifying it

qemuBlockJobRewriteConfigDiskSource rewrites the disk source only
according to the 'target'. This means that if someone would change the
inactive config of the VM to refer to a different disk a block job would
rewrite it when finishing a job which modifies the disk source.

Make sure that this does not happen by verifying that the source of the
config disk is the same.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
ACKed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_blockjob.c