提交 3bb75024 编写于 作者: M Michal Privoznik

qemu_monitor: Fix regression in getting disk capacity

In dbf990fd the qemuMonitorJSONBlockStatsUpdateCapacityOne()
was split. However, due to a bug the return value was never set
to something meaningful.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 9e66ecb5
...@@ -2492,14 +2492,15 @@ qemuMonitorJSONBlockStatsUpdateCapacityOne(virJSONValuePtr image, ...@@ -2492,14 +2492,15 @@ qemuMonitorJSONBlockStatsUpdateCapacityOne(virJSONValuePtr image,
goto cleanup; goto cleanup;
if (backingChain && if (backingChain &&
(backing = virJSONValueObjectGetObject(image, "backing-image"))) { (backing = virJSONValueObjectGetObject(image, "backing-image")) &&
ret = qemuMonitorJSONBlockStatsUpdateCapacityOne(backing, qemuMonitorJSONBlockStatsUpdateCapacityOne(backing,
dev_name, dev_name,
depth + 1, depth + 1,
stats, stats,
true); true) < 0)
} goto cleanup;
ret = 0;
cleanup: cleanup:
VIR_FREE(entry_name); VIR_FREE(entry_name);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册