]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: Call disk startup policy check after cloning domain def
authorPeter Krempa <pkrempa@redhat.com>
Thu, 2 Jun 2016 13:32:00 +0000 (15:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 8 Jun 2016 06:15:11 +0000 (08:15 +0200)
commit9cda91d6f6b887c6f06868f4d2fb16c288ae20d5
tree445b018bda01daea582eafc4b8c822caa26670cd
parent1e467f66229151119a3c8308224de7e30d4e81c5
qemu: process: Call disk startup policy check after cloning domain def

In commit 1e38ef72 the disk startup policy check was moved prior to the
call to virDomainObjSetDefTransient which dropped the disk from the
config rather than the def to be started which is a bug.

Additionally we'd not report the disk change event for this since the
disk aliases were not set at that point.

Finally 'volume' based disks would not work with startup policy too.

Fix it by moving it back after the definition is copied, aliases are
assigned and disk sources are translated.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1341415
src/qemu/qemu_process.c