From 2c3aba719a1062f6b0e6a038b2a89b8f6a61f634 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 12 Mar 2015 16:57:56 +0100 Subject: [PATCH] qemu: hotplug: Use checker function to check if disk is empty (cherry picked from commit e7974b4f80f320c9232ff31762fd1aa82a590f2e) --- src/qemu/qemu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 08047ce1f4..ca0ec47fa6 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;