Avoids that any left-over fleecing images become orphaned. Suggested-by: Fabian Grünbichler <f.gruenbich...@proxmox.com> Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> ---
No changes in v4. PVE/QemuServer.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 649843aa..24f0480e 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2234,6 +2234,9 @@ sub check_type { sub destroy_vm { my ($storecfg, $vmid, $skiplock, $replacement_conf, $purge_unreferenced) = @_; + eval { PVE::QemuConfig::cleanup_fleecing_images($vmid, $storecfg) }; + log_warn("attempt to clean up left-over fleecing images failed - $@") if $@; + my $conf = PVE::QemuConfig->load_config($vmid); if (!$skiplock && !PVE::QemuConfig->has_lock($conf, 'suspended')) { -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel