mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-11 17:09:56 +00:00
followup: make comment a bit shorter/more concise
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9b4e53889b
commit
4b0269379b
@ -6605,12 +6605,9 @@ sub restore_tar_archive {
|
|||||||
|
|
||||||
my $storecfg = PVE::Storage::config();
|
my $storecfg = PVE::Storage::config();
|
||||||
|
|
||||||
# Restoring a backup can replace an existing VM. In this case, we need to
|
# avoid zombie disks when restoring over an existing VM -> cleanup first
|
||||||
# remove existing data such as disks as they would pile up as unused disks
|
# pass keep_empty_config=1 to keep the config (thus VMID) reserved for us
|
||||||
# in the new VM otherwise.
|
# skiplock=1 because qmrestore has set the 'create' lock itself already
|
||||||
# keep_empty_config=1 to prevent races until overwriting it with the
|
|
||||||
# restored config.
|
|
||||||
# skiplock=1 because qmrestore has set the lock itself.
|
|
||||||
my $vmcfgfn = PVE::QemuConfig->config_file($vmid);
|
my $vmcfgfn = PVE::QemuConfig->config_file($vmid);
|
||||||
destroy_vm($storecfg, $vmid, 1, 1) if -f $vmcfgfn;
|
destroy_vm($storecfg, $vmid, 1, 1) if -f $vmcfgfn;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user