[pve-devel] [PATCH qemu-server 2/2] only activate the newly created volume

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Jul 13 12:44:13 CEST 2016


instead of the whole list.
---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 75f6445..b3ccd88 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5750,7 +5750,7 @@ sub clone_disk {
 	$newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $newvmid, $format, undef, ($size/1024));
 	push @$newvollist, $newvolid;
 
-	PVE::Storage::activate_volumes($storecfg, $newvollist);
+	PVE::Storage::activate_volumes($storecfg, [$newvolid]);
 
 	my $sparseinit = PVE::Storage::volume_has_feature($storecfg, 'sparseinit', $newvolid);
 	if (!$running || $snapname) {
-- 
2.1.4





More information about the pve-devel mailing list