提交 03766247 编写于 作者: P Peter Krempa

qemu: migration: Use virStorageSourceIsEmpty in qemuMigrateDisk

Use the proper check whether a disk is empty.
上级 eee3b4b9
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册