From: Peter Krempa Date: Thu, 12 Mar 2015 15:57:56 +0000 (+0100) Subject: qemu: hotplug: Use checker function to check if disk is empty X-Git-Tag: v1.2.14-rc1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7974b4f80f320c9232ff31762fd1aa82a590f2e;p=thirdparty%2Flibvirt.git qemu: hotplug: Use checker function to check if disk is empty --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 7845fd1ef1..45aaa0f735 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -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;