]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationDstPrepareStorage: Use 'switch' statement to include all storage types
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Feb 2024 15:48:25 +0000 (16:48 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 21 Feb 2024 13:15:48 +0000 (14:15 +0100)
commite158b523b8522931200c415ef86562641a2a7c8c
tree1fcde821052b649fac3b0b99c7066f35cbea908b
parent064e77aa0a243c26efc9bc9f3d41fdfe03437114
qemuMigrationDstPrepareStorage: Use 'switch' statement to include all storage types

Decrease the likelyhood that addition of a new storage type will be
forgotten.

This patch also unifies the type check to consult the 'actual' type of
the storage in both cases as the NVMe check looked for the XML declared
type while virStorageSourceIsLocalStorage() looks for the
actual/translated type.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c