aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorStefan Hajnoczi <[email protected]>2018-01-03 16:03:39 +0000
committerMichael S. Tsirkin <[email protected]>2018-02-01 16:26:43 +0200
commitdaf2a5016983a1a533417bcdc729bd2b19af1b68 (patch)
treea20bf8cde132c8f256ad3b03b35f9d0cd8162cc6 /tools/perf/scripts/python/export-to-postgresql.py
parent7b95fec6d2ffa53f4a8d637b0f223644d458ea4e (diff)
virtio_blk: print capacity at probe time
Print the capacity of the block device when the driver is probed. Many users expect this since SCSI disks (sd) do it. Moreover, kernel dmesg output is the primary source of troubleshooting information so it's helpful to include the disk size there. The capacity is already printed by virtio_blk when a resize event occurs. Extract the code and reuse it from virtblk_probe(). This patch also adds the block device name to the message so it can be correlated with a specific device: virtio_blk virtio0: [vda] 20971520 512-byte logical blocks (10.7 GB/10.0 GiB) Cc: Rodrigo A B Freire <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions