From 90a11abe78535e0f7226fa30df851112d4c89e9d Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Mon, 2 Feb 2015 09:48:09 +0100 Subject: [PATCH] ZfsPoolPlugin: fix add disks now it is possible add disk to an vm on rpool Signed-off-by: Wolfgang Link --- 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 490b61c..5403e68 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;