qemu: monitor: return block stats data as a hash to avoid disk mixup
The current block stats code matched up the disk name with the actual stats by the order in the data returned from qemu. This unfortunately isn't right as qemu may return the disks in any order. Fix this by returning a hash of stats and index them by the disk alias.
Showing
想要评论请 注册 或 登录