Disks API: allow also unused disks for db/wal

since we will create a pv/vg/lv on it with nautilus

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2019-06-04 12:35:21 +02:00
committed by Thomas Lamprecht
parent b12883ded1
commit 558d412d10

View File

@ -137,7 +137,7 @@ __PACKAGE__->register_method ({
my $entry = $disks->{$disk};
if ($type eq 'journal_disks') {
next if $entry->{osdid} >= 0;
next if !$entry->{gpt} && $entry->{used} ne 'LVM';
next if !($entry->{gpt} || !$entry->{used} || $entry->{used} eq 'LVM');
} elsif ($type eq 'unused') {
next if $entry->{used};
} elsif ($type ne '') {