mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
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
Block a user