[pve-devel] [PATCH] Fix ZFSPoolPlugin path for subvol

Wolfgang Link w.link at proxmox.com
Mon Jun 22 10:34:45 CEST 2015


Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 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 cae598d..6b095f1 100644
--- a/PVE/Storage/ZFSPoolPlugin.pm
+++ b/PVE/Storage/ZFSPoolPlugin.pm
@@ -150,7 +150,7 @@ sub path {
     if ($vtype eq "images") {
 	if ($volname =~ m/^subvol-/) {
 	    # fixme: we currently assume standard mount point?!
-	    $path = "$scfg->{pool}/$volname";
+	    $path = "/$scfg->{pool}/$volname";
 	} else {
 	    $path = "/dev/zvol/$scfg->{pool}/$volname";
 	}
-- 
2.1.4





More information about the pve-devel mailing list