提交 e3e866ae 编写于 作者: W Wido den Hollander 提交者: Eric Blake

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: NWido den Hollander <wido@widodh.nl>
上级 18b42898
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册