[libvirt] [PATCH v2 1/7] qemuDomainUpdateDeviceConfig: Allow startupPolicy update, yet again

Michal Privoznik mprivozn at redhat.com
Wed Sep 16 09:14:56 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1159219

So, in 11e058ca589808bd I've tried to make UpdateDevice update
startupPolicy too. And it worked well until somebody came around
and pushed d0dc6c036914da which accidentally removed my
contribution. Redo my commit.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/qemu/qemu_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index fcf86b6..fadead5 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -8356,6 +8356,7 @@ qemuDomainUpdateDeviceConfig(virQEMUCapsPtr qemuCaps,
          * We allow updating src/type//driverType/cachemode/
          */
         orig->cachemode = disk->cachemode;
+        orig->startupPolicy = disk->startupPolicy;
 
         virStorageSourceFree(orig->src);
         orig->src = disk->src;
-- 
2.4.6




More information about the libvir-list mailing list