[pve-devel] [PATCH 1/7] pass snapname to vdisk_clone and plugin clone_image
Stefan Priebe
s.priebe at profihost.ag
Thu Feb 6 14:04:50 CET 2014
Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
PVE/Storage.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index da64e89..3cc9581 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -478,7 +478,7 @@ sub storage_migrate {
}
sub vdisk_clone {
- my ($cfg, $volid, $vmid) = @_;
+ my ($cfg, $volid, $vmid, $snap) = @_;
my ($storeid, $volname) = parse_volume_id($volid);
@@ -490,7 +490,7 @@ sub vdisk_clone {
# lock shared storage
return $plugin->cluster_lock_storage($storeid, $scfg->{shared}, undef, sub {
- my $volname = $plugin->clone_image($scfg, $storeid, $volname, $vmid);
+ my $volname = $plugin->clone_image($scfg, $storeid, $volname, $vmid, $snap);
return "$storeid:$volname";
});
}
--
1.7.10.4
More information about the pve-devel
mailing list