mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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 <wido@widodh.nl>
This commit is contained in:
parent
18b428980f
commit
e3e866aee0
@ -12758,10 +12758,6 @@ qemuDiskPathToAlias(virDomainObjPtr vm, const char *path, int *idx)
|
|||||||
if (idx)
|
if (idx)
|
||||||
*idx = i;
|
*idx = i;
|
||||||
|
|
||||||
if (disk->type != VIR_DOMAIN_DISK_TYPE_BLOCK &&
|
|
||||||
disk->type != VIR_DOMAIN_DISK_TYPE_FILE)
|
|
||||||
goto cleanup;
|
|
||||||
|
|
||||||
if (disk->src) {
|
if (disk->src) {
|
||||||
if (virAsprintf(&ret, "drive-%s", disk->info.alias) < 0) {
|
if (virAsprintf(&ret, "drive-%s", disk->info.alias) < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
|
Loading…
Reference in New Issue
Block a user