mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
qemu: migration: Use virStorageSourceIsEmpty in qemuMigrateDisk
Use the proper check whether a disk is empty.
This commit is contained in:
parent
eee3b4b949
commit
03766247ae
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user