From: Alexandre Derumier Date: Thu, 2 May 2013 03:51:49 +0000 (+0200) Subject: storage : sub path: add snapname argument X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=207ea8526789dac0ecbf449c2af50647e30c56c1 storage : sub path: add snapname argument Signed-off-by: Alexandre Derumier --- 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; }