]> git.proxmox.com Git - pve-storage.git/commitdiff
In path use parsed volname not the volid and add 'basevol'
authorWolfgang Link <w.link@proxmox.com>
Mon, 4 Apr 2016 11:58:34 +0000 (13:58 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Apr 2016 13:43:02 +0000 (15:43 +0200)
PVE/Storage/ZFSPoolPlugin.pm

index c381648bcf965a47bd8293b59af7432b38127fc2..7e91625508061262d0bbe5e7797f64c4bcd7ad7c 100644 (file)
@@ -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 {