mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemu: rename: remove snapshot/checkpoint restriction
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
a3259e47d2
commit
e2738b2bd7
@ -19279,18 +19279,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;
|
||||
|
Loading…
Reference in New Issue
Block a user