[pve-devel] [PATCH 08/10] storage : path : add snapname

Alexandre Derumier aderumier at odiso.com
Thu Feb 14 17:27:38 CET 2013


need for qemu-img convert from a snapshot

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