[pve-devel] [PATCH] Bugfix 688: if vm is not owner of this disk remove from config

Wolfgang Link w.link at proxmox.com
Thu Aug 20 10:34:59 CEST 2015


---
 PVE/QemuServer.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 5ba8e1c..7115007 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4038,6 +4038,9 @@ sub try_deallocate_drive {
 		   if $used_paths->{$path};
 	    PVE::Storage::vdisk_free($storecfg, $volid);
 	    return 1;
+	} else {
+	    # If vm is not owner of this disk remove from config
+	    return 1;
 	}
     }
 
-- 
2.1.4





More information about the pve-devel mailing list