render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
147b37
From 442ccfef325b73b201332c89cc53421f8299998e Mon Sep 17 00:00:00 2001
147b37
Message-Id: <442ccfef325b73b201332c89cc53421f8299998e@dist-git>
147b37
From: Jiri Denemark <jdenemar@redhat.com>
147b37
Date: Thu, 22 Feb 2018 13:22:39 +0100
147b37
Subject: [PATCH] lxc: Drop useless check in live device update
147b37
MIME-Version: 1.0
147b37
Content-Type: text/plain; charset=UTF-8
147b37
Content-Transfer-Encoding: 8bit
147b37
147b37
Checking the new device definition makes little sense when lxc driver
147b37
does not support live device update at all.
147b37
147b37
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
147b37
(cherry picked from commit e3497f3fc895c427ce35188f3ddb2bb47a853be9)
147b37
147b37
https://bugzilla.redhat.com/show_bug.cgi?id=1557922
147b37
147b37
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
147b37
Reviewed-by: Ján Tomko <jtomko@redhat.com>
147b37
---
147b37
 src/lxc/lxc_driver.c | 3 ---
147b37
 1 file changed, 3 deletions(-)
147b37
147b37
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
147b37
index b3f6f064f3..7829ef8618 100644
147b37
--- a/src/lxc/lxc_driver.c
147b37
+++ b/src/lxc/lxc_driver.c
147b37
@@ -4910,9 +4910,6 @@ static int lxcDomainUpdateDeviceFlags(virDomainPtr dom,
147b37
     }
147b37
 
147b37
     if (flags & VIR_DOMAIN_AFFECT_LIVE) {
147b37
-        if (virDomainDefCompatibleDevice(vm->def, dev_copy) < 0)
147b37
-            goto endjob;
147b37
-
147b37
         virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
147b37
                        _("Unable to modify live devices"));
147b37
 
147b37
-- 
147b37
2.17.0
147b37