[pve-devel] [PATCH] ZfsPoolPlugin: fix add disks

Wolfgang Link w.link at proxmox.com
Mon Feb 2 09:48:09 CET 2015


now it is possible add disk to an vm on rpool

Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 PVE/Storage/ZFSPoolPlugin.pm |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/PVE/Storage/ZFSPoolPlugin.pm b/PVE/Storage/ZFSPoolPlugin.pm
index 10da7f7..629802e 100644
--- a/PVE/Storage/ZFSPoolPlugin.pm
+++ b/PVE/Storage/ZFSPoolPlugin.pm
@@ -98,12 +98,8 @@ sub zfs_parse_zvol_list {
 	    my $name = pop @parts;
 	    my $pool = join('/', @parts);
 
-	    if ($pool !~ /^rpool$/) {
-		next unless $name =~ m!^(\w+)-(\d+)-(\w+)-(\d+)$!;
-		$name = $pool . '/' . $name;
-	    } else {
-		next;
-	    }
+	    next unless $name =~ m!^(\w+)-(\d+)-(\w+)-(\d+)$!;
+	    $name = $pool . '/' . $name;
 
 	    $zvol->{pool} = $pool;
 	    $zvol->{name} = $name;
-- 
1.7.10.4





More information about the pve-devel mailing list