mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu_monitor: Fix regression in getting disk capacity
In dbf990fd31e8 the qemuMonitorJSONBlockStatsUpdateCapacityOne() was split. However, due to a bug the return value was never set to something meaningful. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9e66ecb5ea
commit
3bb75024da
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user