]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuMigrate.pm
prefer storage_check_enabled over storage_check_node
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 18 Jun 2021 10:59:33 +0000 (12:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 21 Jun 2021 09:17:48 +0000 (11:17 +0200)
commit0d2db084140cbbf4792efec1c96186eb8a622d0e
treea62278112e7ee27ef8873291595201dbd169ca6b
parentcc1cdadbf461b0c89c865664c33199f8a33caa1b
prefer storage_check_enabled over storage_check_node

storage_check_enabled simply checks for the 'disable' option and then calls
storage_check_node.

While not strictly necessary for a second call where only the storage differs,
e.g. in case of clone, it is more future-proof: if support for a target storage
is added at some point, it might be easy to miss adapting the call.

For the migration checks, the situation is improved by now always catching
disabled (target) storages.

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