mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu_driver: increase recorded counter for disk block stats
Commit <318d807a0bd3372b634d1952b559c5c627ccfa5b> added a fix to skip most of the block stat code to not log error message for missing storage sources but forgot to increase the recordnr counter. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8ebfd29cbd
commit
02ffd9909c
@ -18414,8 +18414,14 @@ qemuDomainGetStatsBlockExportDisk(virDomainDiskDefPtr disk,
|
||||
VIR_INFO("optional disk '%s' source file is missing, "
|
||||
"skip getting stats", disk->dst);
|
||||
|
||||
return qemuDomainGetStatsBlockExportHeader(disk, disk->src, *recordnr,
|
||||
params);
|
||||
if (qemuDomainGetStatsBlockExportHeader(disk, disk->src, *recordnr,
|
||||
params) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
(*recordnr)++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* vhost-user disk doesn't support getting block stats */
|
||||
|
Loading…
x
Reference in New Issue
Block a user