From 74b724a6993fbe859a76d46dd5f2f9be395a2002 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Mon, 4 Apr 2016 13:58:34 +0200 Subject: [PATCH] In path use parsed volname not the volid and add 'basevol' --- 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 {