[pve-devel] [PATCH 1/3] pass snapname to PVE::Storage::vdisk_clone
Stefan Priebe
s.priebe at profihost.ag
Thu Feb 6 14:04:49 CET 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 7bc2721..a547c65 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4962,7 +4962,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