]> git.proxmox.com Git - pve-storage.git/commitdiff
storage : sub path: add snapname argument
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 2 May 2013 03:51:49 +0000 (05:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 2 May 2013 04:33:33 +0000 (06:33 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage.pm

index 36d4cb3ef0636debea3fa5c402e32cbe094d0f7e..c6d9d123adf408ccec705573429a2c1bfea2a21e 100755 (executable)
@@ -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;
 }