mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-10 01:18:01 +03:00
ae180b8f08
and refactor the test_volid closure. Like this get_replicatable_volumes doesn't need a separate loop for unused volumes anymore. For get_vm_volumes, which is used for activation/deactivation of volumes at migration and deactivation in vm_stop_cleanup, includes those volumes now. For migration it's an improvement, because those volumes might need to be migrated and for vm_stop_cleanup it shouldn't hurt. The last user of foreach_volid is check_vm_disks_local used by migrate_vm_precondition, where information about the additional volumes doesn't hurt either. Note that replicate is (still) set by default, so the behavior for get_replicatable_volumes for unused volumes should not change. Hibernation vmstate files are now also included and recognized as 'is_vmstate'. The 'size' attribute will not be overwritten by subsequent iterations for the same volid anymore (a volid may appear both in the config and in snapshots), so the size from the current config is now preferred. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com> |
||
---|---|---|
debian | ||
PVE | ||
qemu-configs | ||
qmeventd | ||
test | ||
vm-network-scripts | ||
.gitignore | ||
bootsplash.jpg | ||
bootsplash.xcf | ||
Makefile | ||
modules-load.conf | ||
qm | ||
qmextract | ||
qmrestore |