]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Perform the disk WWN check only on fresh starts
authorPeter Krempa <pkrempa@redhat.com>
Tue, 29 Sep 2015 16:13:06 +0000 (18:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2015 05:25:21 +0000 (07:25 +0200)
Since we'd disallow migration of a guest that would have possibly
invalid config but still be able to work, relax the WWN check to be
performed only on new starts of the VM.

src/qemu/qemu_process.c

index f2586a1832d0cd8f8fcb5e4c52f76ea30a71485e..9c107bd528547c7e50a2df1aa57e39677cb9516b 100644 (file)
@@ -4628,7 +4628,8 @@ int qemuProcessStart(virConnectPtr conn,
             goto cleanup;
     }
 
-    if (virDomainDefCheckDuplicateDiskWWN(vm->def) < 0)
+    if (!migrateFrom && !snapshot &&
+        virDomainDefCheckDuplicateDiskWWN(vm->def) < 0)
         goto cleanup;
 
     /* "volume" type disk's source must be translated before