[pve-devel] [PATCH 1/3] storage : sub path: add snapname argument

Alexandre Derumier aderumier at odiso.com
Thu May 2 05:51:49 CEST 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 36d4cb3..c6d9d12 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -348,14 +348,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




More information about the pve-devel mailing list