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

qemu: driver: Stop using QEMU_ADD_BLOCK_PARAM_ULL in qemuDomainGetStatsBlockExportBackendStorage

Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 585e2603
......@@ -21482,20 +21482,16 @@ qemuDomainGetStatsBlockExportBackendStorage(const char *entryname,
virTypedParamListPtr params)
{
qemuBlockStats *entry;
int ret = -1;
if (!stats || !entryname || !(entry = virHashLookup(stats, entryname))) {
ret = 0;
goto cleanup;
}
if (!stats || !entryname || !(entry = virHashLookup(stats, entryname)))
return 0;
if (entry->write_threshold)
QEMU_ADD_BLOCK_PARAM_ULL(params, recordnr, "threshold",
entry->write_threshold);
if (entry->write_threshold &&
virTypedParamListAddULLong(params, entry->write_threshold,
"block.%zu.threshold", recordnr) < 0)
return -1;
ret = 0;
cleanup:
return ret;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册