]> git.proxmox.com Git - qemu-server.git/commit
migration: simplify removal of local volumes and get rid of self->{volumes}
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 29 Jan 2021 15:11:38 +0000 (16:11 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 18 Apr 2021 16:30:41 +0000 (18:30 +0200)
commitad8b9d5e2dfdc9f04c4f5a1aef3cee759804cddf
treef6c1f4083ca8acbb485ac18f4d98241da505c1a5
parentefbbe59da4636bae94ca02e36f7c59e914431c2e
migration: simplify removal of local volumes and get rid of self->{volumes}

This also changes the behavior to remove the local copies of offline migrated
volumes only after the migration has finished successfully (this is relevant
for mixed settings, e.g. online migration with unused/vmstate disks).

local_volumes contains both, the volumes previously in $self->{volumes}
and the volumes in $self->{online_local_volumes}, and hence is the place
to look for which volumes we need to remove. Of course, replicated
volumes still need to be skipped.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuMigrate.pm