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:
committed by
Thomas Lamprecht
parent
b12883ded1
commit
558d412d10
@ -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 '') {
|
||||
|
||||
Reference in New Issue
Block a user