mirror of https://gitee.com/openkylin/libvirt.git
qemu: hotplug: Use checker function to check if disk is empty
This commit is contained in:
parent
f4b5f53027
commit
e7974b4f80
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue