Signed-off-by: Alexandre Derumier <[email protected]>
---
 PVE/Storage.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 03eaf64..491bca9 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -355,14 +355,14 @@ sub path_to_volume_id {
 }
 
 sub path {
-    my ($cfg, $volid) = @_;
+    my ($cfg, $volid, $snapname) = @_;
 
     my ($storeid, $volname) = parse_volume_id($volid);
 
     my $scfg = storage_config($cfg, $storeid);
 
     my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
-    my ($path, $owner, $vtype) = $plugin->path($scfg, $volname, $storeid);
+    my ($path, $owner, $vtype) = $plugin->path($scfg, $volname, $storeid, 
$snapname);
     return wantarray ? ($path, $owner, $vtype) : $path;
 }
 
-- 
1.7.10.4

_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to