ZfsPoolPlugin: fix add disks
now it is possible add disk to an vm on rpool Signed-off-by: Wolfgang Link <w.link@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
8870a5f0f9
commit
90a11abe78
@ -98,12 +98,8 @@ sub zfs_parse_zvol_list {
|
|||||||
my $name = pop @parts;
|
my $name = pop @parts;
|
||||||
my $pool = join('/', @parts);
|
my $pool = join('/', @parts);
|
||||||
|
|
||||||
if ($pool !~ /^rpool$/) {
|
|
||||||
next unless $name =~ m!^(\w+)-(\d+)-(\w+)-(\d+)$!;
|
next unless $name =~ m!^(\w+)-(\d+)-(\w+)-(\d+)$!;
|
||||||
$name = $pool . '/' . $name;
|
$name = $pool . '/' . $name;
|
||||||
} else {
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
|
|
||||||
$zvol->{pool} = $pool;
|
$zvol->{pool} = $pool;
|
||||||
$zvol->{name} = $name;
|
$zvol->{name} = $name;
|
||||||
|
|||||||
Reference in New Issue
Block a user