From 03766247aed9efa0538f9d9391052ebefae3a307 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 7 Apr 2017 17:38:36 +0200 Subject: [PATCH] qemu: migration: Use virStorageSourceIsEmpty in qemuMigrateDisk Use the proper check whether a disk is empty. --- src/qemu/qemu_migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index d8222fe3bf..b3d42619f2 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -415,7 +415,7 @@ qemuMigrateDisk(virDomainDiskDef const *disk, /* Default is to migrate only non-shared non-readonly disks * with source */ return !disk->src->shared && !disk->src->readonly && - virDomainDiskGetSource(disk); + !virStorageSourceIsEmpty(disk->src); }