[PATCH 6/8] qemu: rename: remove snapshot/checkpoint restriction

Nikolay Shirokovskiy posted 8 patches 5 years, 11 months ago
There is a newer version of this series
[PATCH 6/8] qemu: rename: remove snapshot/checkpoint restriction
Posted by Nikolay Shirokovskiy 5 years, 11 months ago
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
---
 src/qemu/qemu_driver.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 875b665cdf..4553ebfb80 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -22128,18 +22128,6 @@ static int qemuDomainRename(virDomainPtr dom,
         goto endjob;
     }
 
-    if (virDomainSnapshotObjListNum(vm->snapshots, NULL, 0) > 0) {
-        virReportError(VIR_ERR_OPERATION_INVALID,
-                       "%s", _("cannot rename domain with snapshots"));
-        goto endjob;
-    }
-
-    if (virDomainListCheckpoints(vm->checkpoints, NULL, dom, NULL, flags) > 0) {
-        virReportError(VIR_ERR_OPERATION_INVALID,
-                       "%s", _("cannot rename domain with checkpoints"));
-        goto endjob;
-    }
-
     if (virDomainObjListRename(driver->domains, vm, new_name, flags,
                                qemuDomainRenameCallback, driver) < 0)
         goto endjob;
-- 
2.23.0