mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 13:16:53 +00:00
Fix #1650: add content type filter to rescan
Unused disk(s) appeared after a rescan of storages. Especially shown with ceph pools, where two storage entries are made, <storage>_ct and <storage>_vm. The rescan method did include images from both storages. This patch filters any storage not containing the content type 'images'. Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
parent
51179fe3e9
commit
4771526af1
@ -5606,6 +5606,10 @@ sub rescan {
|
||||
|
||||
my $cfg = PVE::Storage::config();
|
||||
|
||||
foreach my $stor (keys %{$cfg->{ids}}) {
|
||||
delete($cfg->{ids}->{$stor}) if ! $cfg->{ids}->{$stor}->{content}->{images};
|
||||
}
|
||||
|
||||
my $volid_hash = scan_volids($cfg, $vmid);
|
||||
|
||||
my $updatefn = sub {
|
||||
|
Loading…
Reference in New Issue
Block a user