[pve-devel] [PATCH 1/3] pass snapname to PVE::Storage::vdisk_clone

Stefan Priebe s.priebe at profihost.ag
Fri Jul 4 10:25:47 CEST 2014


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 PVE/QemuServer.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index abed0c1..db0e206 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5190,7 +5190,7 @@ sub clone_disk {
 
     if (!$full) {
 	print "create linked clone of drive $drivename ($drive->{file})\n";
-	$newvolid = PVE::Storage::vdisk_clone($storecfg,  $drive->{file}, $newvmid);
+	$newvolid = PVE::Storage::vdisk_clone($storecfg,  $drive->{file}, $newvmid, $snapname);
 	push @$newvollist, $newvolid;
     } else {
 	my ($storeid, $volname) = PVE::Storage::parse_volume_id($drive->{file});
-- 
1.7.10.4



More information about the pve-devel mailing list