]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc: Remove FORCE flag from lxcDomainUpdateDeviceFlags
authorJohn Ferlan <jferlan@redhat.com>
Thu, 28 Jun 2018 10:29:51 +0000 (06:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 2 Jul 2018 21:06:14 +0000 (17:06 -0400)
Force would be used to force eject a cdrom live, since the code
doesn't support live update, remove the flag.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Prívozník <mprivozn@redhat.com>
src/lxc/lxc_driver.c

index f9794e0655c3d6f2b61610841250a53462404490..aea48e5e3d0578f7845800507eceaf79e95af125 100644 (file)
@@ -4832,8 +4832,7 @@ static int lxcDomainUpdateDeviceFlags(virDomainPtr dom,
     virLXCDriverConfigPtr cfg = virLXCDriverGetConfig(driver);
 
     virCheckFlags(VIR_DOMAIN_AFFECT_LIVE |
-                  VIR_DOMAIN_AFFECT_CONFIG |
-                  VIR_DOMAIN_DEVICE_MODIFY_FORCE, -1);
+                  VIR_DOMAIN_AFFECT_CONFIG, -1);
 
     if (!(vm = lxcDomObjFromDomain(dom)))
         goto cleanup;