[pve-devel] [PATCH 32/48] storage : sub path: add snapname argument
Alexandre Derumier
aderumier at odiso.com
Tue Jan 29 17:14:14 CET 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 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
More information about the pve-devel
mailing list