]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Clarify error message in qemuMigrationSrcIsSafe
authorJiri Denemark <jdenemar@redhat.com>
Tue, 13 Aug 2019 11:16:20 +0000 (13:16 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 14 Aug 2019 07:36:43 +0000 (09:36 +0200)
The original message was logically incorrect: cache != none or cache !=
directsync is always true. But even replacing "or" with "and" doesn't
make it more readable for humans.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Acked-By: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_migration.c

index c2570f7303cd547dcc1e31edf7b6178e17e8211e..2bd1a464bf075a1adc8134ca47feb9cbc9c8659a 100644 (file)
@@ -1266,7 +1266,7 @@ qemuMigrationSrcIsSafe(virDomainDefPtr def,
 
         virReportError(VIR_ERR_MIGRATE_UNSAFE, "%s",
                        _("Migration may lead to data corruption if disks"
-                         " use cache != none or cache != directsync"));
+                         " use cache other than none or directsync"));
         return false;
     }