提交 bbf204da 编写于 作者: P Peter Krempa

qemu: block: Handle iomode property for json 'file' driver

Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 0304e675
......@@ -977,11 +977,17 @@ qemuBlockStorageSourceGetSshProps(virStorageSourcePtr src)
static virJSONValuePtr
qemuBlockStorageSourceGetFileProps(virStorageSourcePtr src)
{
const char *iomode = NULL;
virJSONValuePtr ret = NULL;
if (src->iomode != VIR_DOMAIN_DISK_IO_DEFAULT)
iomode = virDomainDiskIoTypeToString(src->iomode);
ignore_value(virJSONValueObjectCreate(&ret,
"s:driver", "file",
"s:filename", src->path, NULL) < 0);
"s:filename", src->path,
"S:aio", iomode,
NULL) < 0);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册