mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
qemu: driver: Stop using QEMU_ADD_BLOCK_PARAM_ULL in qemuDomainGetStatsBlockExportBackendStorage
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
585e260395
commit
d4dcfdf7a3
@ -21482,20 +21482,16 @@ qemuDomainGetStatsBlockExportBackendStorage(const char *entryname,
|
|||||||
virTypedParamListPtr params)
|
virTypedParamListPtr params)
|
||||||
{
|
{
|
||||||
qemuBlockStats *entry;
|
qemuBlockStats *entry;
|
||||||
int ret = -1;
|
|
||||||
|
|
||||||
if (!stats || !entryname || !(entry = virHashLookup(stats, entryname))) {
|
if (!stats || !entryname || !(entry = virHashLookup(stats, entryname)))
|
||||||
ret = 0;
|
return 0;
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (entry->write_threshold)
|
if (entry->write_threshold &&
|
||||||
QEMU_ADD_BLOCK_PARAM_ULL(params, recordnr, "threshold",
|
virTypedParamListAddULLong(params, entry->write_threshold,
|
||||||
entry->write_threshold);
|
"block.%zu.threshold", recordnr) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
ret = 0;
|
return 0;
|
||||||
cleanup:
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user