mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 16:15:23 +00:00
qemu: hotplug: Use checker function to check if disk is empty
(cherry picked from commit e7974b4f80
)
This commit is contained in:
parent
7d11e8de0b
commit
2c3aba719a
@ -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