]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: migrate: Fix logic bug in interlock of --copy-storage-synchronous-writes flag
authorPeter Krempa <pkrempa@redhat.com>
Wed, 6 Dec 2023 07:36:13 +0000 (08:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Dec 2023 15:42:32 +0000 (16:42 +0100)
commita2f98b6b8cedec086facff85afee0c94ad5b4571
treeb50ff4be6c3962624ce4061ef73be49882bb9d41
parent831c55ae3ecea4b3d413679cde67b31813678ece
virsh: migrate: Fix logic bug in interlock of --copy-storage-synchronous-writes flag

As the error message states we want to check that one of
'--copy-storage-all' or '--copy-storage-inc' is used, but the condition
mentioned VIR_MIGRATE_NON_SHARED_DISK twice.

Fixes: 1c2bd205edd
Resolves: https://issues.redhat.com/browse/RHEL-17596
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c