[pve-devel] [PATCH] check_volume_access : pass checkaccess argument
Alexandre Derumier
aderumier at odiso.com
Wed Sep 25 03:04:17 CEST 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/RPCEnvironment.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/RPCEnvironment.pm b/PVE/RPCEnvironment.pm
index 765008e..62c1131 100644
--- a/PVE/RPCEnvironment.pm
+++ b/PVE/RPCEnvironment.pm
@@ -291,7 +291,7 @@ sub check_volume_access {
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
if ($sid) {
my ($ownervm, $vtype);
- ($path, $ownervm, $vtype) = PVE::Storage::path($storecfg, $volid);
+ ($path, $ownervm, $vtype) = PVE::Storage::path($storecfg, $volid, undef, 1);
if ($vtype eq 'iso' || $vtype eq 'vztmpl') {
# we simply allow access
} elsif (defined($ownervm) && defined($vmid) && ($ownervm == $vmid)) {
--
1.7.10.4
More information about the pve-devel
mailing list