]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Don't require a block or file when looking for an alias
authorWido den Hollander <wido@widodh.nl>
Fri, 5 Apr 2013 16:07:25 +0000 (18:07 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 24 Apr 2013 22:29:26 +0000 (16:29 -0600)
This for example prohibits you to use iotune for Ceph or Sheepdog devices.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/qemu/qemu_driver.c

index ba5600da833e1011ffc5a16de413fc70e0935cea..13d6d60d70f60a83f6b386faf19a63361f440075 100644 (file)
@@ -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();