96c0f57 qemu: monitor: return block stats data as a hash to avoid disk mixup

Authored and Committed by Peter Krempa 9 years ago
    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.
    
        
file modified
+22 -22
file modified
+4 -10
file modified
+2 -4
file modified
+52 -59
file modified
+1 -3