From e3e866aee0f8b0b125da74e1afcfe7242c2fe3d2 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Fri, 5 Apr 2013 18:07:25 +0200 Subject: [PATCH] qemu: Don't require a block or file when looking for an alias This for example prohibits you to use iotune for Ceph or Sheepdog devices. Signed-off-by: Wido den Hollander --- src/qemu/qemu_driver.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index ba5600da83..13d6d60d70 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -12758,10 +12758,6 @@ qemuDiskPathToAlias(virDomainObjPtr vm, const char *path, int *idx) if (idx) *idx = i; - if (disk->type != VIR_DOMAIN_DISK_TYPE_BLOCK && - disk->type != VIR_DOMAIN_DISK_TYPE_FILE) - goto cleanup; - if (disk->src) { if (virAsprintf(&ret, "drive-%s", disk->info.alias) < 0) { virReportOOMError();