]> Git Repo - qemu.git/commit
BlockConf: Call backend functions to detect geometry and blocksizes
authorEkaterina Tumanova <[email protected]>
Mon, 16 Feb 2015 11:47:58 +0000 (12:47 +0100)
committerKevin Wolf <[email protected]>
Tue, 10 Mar 2015 13:02:22 +0000 (14:02 +0100)
commit0eb28a42284ec32e6f283985d2d638474a05eba4
tree922a82eb6b0aa19aabe1a21713814a9f0c79255c
parentf0272c4db2a914453a6254f80bfe3b708a0b2426
BlockConf: Call backend functions to detect geometry and blocksizes

geometry: hd_geometry_guess function autodetects the drive geometry.
This patch adds a block backend call, that probes the backing device
geometry. If the inner driver method is implemented and succeeds
(currently only for DASDs), the blkconf_geometry will pass-through
the backing device geometry. Otherwise will fallback to old logic.

blocksize: This patch initializes blocksize properties to 0.
In order to set the property a blkconf_blocksizes was introduced.
If user didn't set physical or logical blocksize, it will
retrieve its value from a driver (only succeeds for DASD), otherwise
it will set default 512 value.

The blkconf_blocksizes call was added to all users of BlkConf.

Signed-off-by: Ekaterina Tumanova <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Message-id: 1424087278[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/block/block.c
hw/block/hd-geometry.c
hw/block/nvme.c
hw/block/virtio-blk.c
hw/core/qdev-properties.c
hw/ide/qdev.c
hw/scsi/scsi-disk.c
hw/usb/dev-storage.c
include/hw/block/block.h
include/hw/qdev-properties.h
This page took 0.027776 seconds and 4 git commands to generate.