Stefan Hajnoczi
daf2a50169
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 <rfreire@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-02-01 16:26:43 +02:00
..
aoe
treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts
2017-11-21 16:35:54 -08:00
drbd
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
mtip32xx
Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block
2017-11-14 15:32:19 -08:00
paride
Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block
2017-11-14 15:32:19 -08:00
rsxx
treewide: setup_timer() -> timer_setup() (2 field)
2017-11-21 15:57:09 -08:00
xen-blkback
zram
drivers/block/zram/zram_drv.c: make zram_page_end_io() static
2017-11-15 18:21:05 -08:00
amiflop.c
amifloppy: Convert timers to use timer_setup()
2017-11-14 20:11:57 -07:00
ataflop.c
treewide: Switch DEFINE_TIMER callbacks to struct timer_list *
2017-11-21 15:57:05 -08:00
brd.c
libnvdimm for 4.15
2017-11-17 09:51:57 -08:00
cryptoloop.c
DAC960.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
DAC960.h
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
floppy.c
block/floppy: Convert callback to pass timer_list
2017-11-14 20:10:35 -07:00
Kconfig
libnvdimm for 4.15
2017-11-17 09:51:57 -08:00
loop.c
loop: fix concurrent lo_open/lo_release
2018-01-06 09:32:07 -07:00
loop.h
Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
nbd.c
Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block
2017-11-14 15:32:19 -08:00
null_blk.c
null_blk: unalign call_single_data
2017-12-20 13:16:33 -07:00
pktcdvd.c
ps3disk.c
ps3vram.c
rbd.c
rbd: set max_segments to USHRT_MAX
2018-01-09 17:40:48 +01:00
rbd_types.h
skd_main.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
skd_s1120.h
smart1,2.h
sunvdc.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
swim.c
swim3.c
treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts
2017-11-21 16:35:54 -08:00
swim_asm.S
sx8.c
umem.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
umem.h
virtio_blk.c
virtio_blk: print capacity at probe time
2018-02-01 16:26:43 +02:00
xen-blkfront.c
xsysace.c
treewide: setup_timer() -> timer_setup()
2017-11-21 15:57:07 -08:00
z2ram.c