[pve-devel] [PATCH] Bugfix 688: prevent copy unused disks in the config.

Wolfgang Link w.link at proxmox.com
Thu Aug 20 09:14:34 CEST 2015


---
 PVE/API2/Qemu.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index c4516de..669cfc2 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -2171,7 +2171,8 @@ __PACKAGE__->register_method({
 
 		# do not copy snapshot related info
 		next if $opt eq 'snapshots' ||  $opt eq 'parent' || $opt eq 'snaptime' ||
-		    $opt eq 'vmstate' || $opt eq 'snapstate';
+		    $opt eq 'vmstate' || $opt eq 'snapstate' ||
+		    $opt =~ m/^unused\d+$/;
 
 		# always change MAC! address
 		if ($opt =~ m/^net(\d+)$/) {
-- 
2.1.4





More information about the pve-devel mailing list