mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-12 09:18:01 +03:00
vdisk_list: skip scanning storages which cannot have images/rootdisks
Do not try to scan (and thus activate) storages which aren't configured to support (or cannot support) "vdisks" anyway. Avoids seemingly strange failures of VM migrations due to a backup storage not being currently online - even if that storage isn't referenced in the VM config anywhere.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d6fc193816
commit
c43655d2ed
@ -882,6 +882,8 @@ sub vdisk_list {
|
|||||||
foreach my $sid (keys %$ids) {
|
foreach my $sid (keys %$ids) {
|
||||||
next if $storeid && $storeid ne $sid;
|
next if $storeid && $storeid ne $sid;
|
||||||
next if !storage_check_enabled($cfg, $sid, undef, 1);
|
next if !storage_check_enabled($cfg, $sid, undef, 1);
|
||||||
|
my $content = $ids->{$sid}->{content};
|
||||||
|
next if !($content->{rootdir} || $content->{images});
|
||||||
push @$storage_list, $sid;
|
push @$storage_list, $sid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user