[pve-devel] [PATCH 3/3] In path use parsed volname not the volid and add 'basevol'

Wolfgang Link w.link at proxmox.com
Mon Apr 4 13:58:34 CEST 2016


---
 PVE/Storage/ZFSPoolPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm
index c381648..7e91625 100644
--- a/PVE/Storage/ZFSPoolPlugin.pm
+++ b/PVE/Storage/ZFSPoolPlugin.pm
@@ -148,7 +148,7 @@ sub path {
     my $path = '';
 
     if ($vtype eq "images") {
-	if ($volname =~ m/^subvol-/) {
+	if ($name =~ m/^subvol-/ || $name =~ m/^basevol-/) {
 	    # fixme: we currently assume standard mount point?!
 	    $path = "/$scfg->{pool}/$name";
 	} else {
-- 
2.1.4





More information about the pve-devel mailing list