[pve-devel] [PATCH 2/2] nexenta: path : add checkaccess

Alexandre Derumier aderumier at odiso.com
Wed Sep 25 03:03:12 CEST 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/NexentaPlugin.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index 93cd0cf..5a11fae 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -198,9 +198,10 @@ sub parse_volname {
 }
 
 sub path {
-    my ($class, $scfg, $volname) = @_;
+    my ($class, $scfg, $volname, $storeid, $snapname, $checkaccess) = @_;
 
     my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+    return (undef, $vmid, $vtype) if $checkaccess;
 
     my $target = $scfg->{target};
     my $portal = $scfg->{portal};
-- 
1.7.10.4




More information about the pve-devel mailing list