提交 2c3aba71 编写于 作者: P Peter Krempa 提交者: Cole Robinson

qemu: hotplug: Use checker function to check if disk is empty

(cherry picked from commit e7974b4f)
上级 7d11e8de
......@@ -222,7 +222,7 @@ qemuDomainChangeEjectableMedia(virQEMUDriverPtr driver,
goto error;
}
if (!virStorageSourceIsLocalStorage(newsrc) || newsrc->path) {
if (!virStorageSourceIsEmpty(newsrc)) {
if (qemuGetDriveSourceString(newsrc, conn, &sourcestr) < 0)
goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册