qemu-server/PVE
Aaron Lauterer 6e9c4929be qemuserver: migration: test_volid: change attr name and ref handling
Since we don't scan all storages for matching disk images anymore for a
migration we don't have any images found via storage alone. They will be
referenced in the config somewhere.

Therefore, there is no need for the 'storage' ref.
The 'referenced_in_config' is not really needed and can apply to both,
attached and unused disk images.

Therefore the QemuServer::foreach_volid() will change the
'referenced_in_config' attribute to an 'is_attached' one that only
applies to disk images that are in the _main_ config part and are not
unused.

In QemuMigrate::scan_local_volumes() we can then quite easily map the
refs to each state, attached, unused, referenced_in_{pending,snapshot}.

The refs are mostly used for informational use to print out in the logs
why a disk image is part of the migration. Except for the 'attached' case.

In the future the extra step of the refs in QemuMigrate could probably
be streamlined even more.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2023-06-21 12:48:11 +02:00
..
API2 qemuserver: foreach_volid: always include pending disks 2023-06-21 12:48:11 +02:00
CLI qm: remote migration: improve error when storage cannot be found 2023-06-09 09:49:40 +02:00
QemuServer cloudinit: restore previous default for package upgrades 2023-06-21 12:40:58 +02:00
VZDump backup: prepare: improve error messages 2023-03-27 11:38:43 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm qemuserver: foreach_volid: always include pending disks 2023-06-21 12:48:11 +02:00
QemuMigrate.pm qemuserver: migration: test_volid: change attr name and ref handling 2023-06-21 12:48:11 +02:00
QemuServer.pm qemuserver: migration: test_volid: change attr name and ref handling 2023-06-21 12:48:11 +02:00
QMPClient.pm remove left-over mentions of to-be-dropped, outdated QMP commands 2023-06-07 19:36:45 +02:00