hd-geometry: Cut out block layer translation middleman
authorMarkus Armbruster <armbru@redhat.com>
Tue, 10 Jul 2012 09:12:37 +0000 (11:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:30 +0000 (16:48 +0200)
commite2f3dc2b6a205cf969ba5d1307293db17fd9621f
tree1dd5ac8c21df718fadaced876fadb92114d19492
parentdc28c0cd30d7b122500b17eedc7e070624fd7c86
hd-geometry: Cut out block layer translation middleman

hd_geometry_guess() picks geometry and translation.  Callers can get
the geometry directly, via parameters, but for translation they need
to go through the block layer.

Add a parameter for translation, so it can optionally be gotten just
like geometry.  In preparation of purging translation from the block
layer, which will happen later in this series.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block-common.h
hw/hd-geometry.c
hw/ide/core.c
hw/scsi-disk.c
hw/virtio-blk.c