mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemuDomainGetStatsBlock: Always fetch stats for the full backing chain
Similarly to the fix to 'qemuDomainBlocksStatsGather' we should be always fetching the full backing chain so that we can avoid any automatic filter notes which would prevent us from fetching the stats for the correct nodename. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
579e05536b
commit
65ff87c51c
@ -18478,14 +18478,14 @@ qemuDomainGetStatsBlock(virQEMUDriver *driver,
|
||||
if (HAVE_JOB(privflags) && virDomainObjIsActive(dom)) {
|
||||
qemuDomainObjEnterMonitor(driver, dom);
|
||||
|
||||
rc = qemuMonitorGetAllBlockStatsInfo(priv->mon, &stats, visitBacking);
|
||||
rc = qemuMonitorGetAllBlockStatsInfo(priv->mon, &stats, true);
|
||||
|
||||
if (rc >= 0) {
|
||||
if (blockdev)
|
||||
rc = qemuMonitorBlockStatsUpdateCapacityBlockdev(priv->mon, stats);
|
||||
else
|
||||
ignore_value(qemuMonitorBlockStatsUpdateCapacity(priv->mon, stats,
|
||||
visitBacking));
|
||||
true));
|
||||
}
|
||||
|
||||
if (fetchnodedata)
|
||||
|
Loading…
x
Reference in New Issue
Block a user