qemu: migration: Use virStorageSourceIsEmpty in qemuMigrateDisk

Use the proper check whether a disk is empty.
This commit is contained in:
Peter Krempa 2017-04-07 17:38:36 +02:00
parent eee3b4b949
commit 03766247ae

View File

@ -415,7 +415,7 @@ qemuMigrateDisk(virDomainDiskDef const *disk,
/* Default is to migrate only non-shared non-readonly disks /* Default is to migrate only non-shared non-readonly disks
* with source */ * with source */
return !disk->src->shared && !disk->src->readonly && return !disk->src->shared && !disk->src->readonly &&
virDomainDiskGetSource(disk); !virStorageSourceIsEmpty(disk->src);
} }