diff options
author | Kevin Wolf | 2018-06-13 11:01:30 +0200 |
---|---|---|
committer | Kevin Wolf | 2018-06-15 14:49:44 +0200 |
commit | a7aff6dd10b16b67e8b142d0c94c5d92c3fe88f6 (patch) | |
tree | 9c6c9acb0965b98ae40bc569b27d97e72f5e991c /hw | |
parent | rbd: New parameter key-secret (diff) | |
download | qemu-a7aff6dd10b16b67e8b142d0c94c5d92c3fe88f6.tar.gz qemu-a7aff6dd10b16b67e8b142d0c94c5d92c3fe88f6.tar.xz qemu-a7aff6dd10b16b67e8b142d0c94c5d92c3fe88f6.zip |
block: Remove deprecated -drive geometry options
The -drive options cyls, heads, secs and trans were deprecated in
QEMU 2.10. It's time to remove them.
hd-geo-test tested both the old version with geometry options in -drive
and the new one with -device. Therefore the code using -drive doesn't
have to be replaced there, we just need to remove the -drive test cases.
This in turn allows some simplification of the code.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/block/block.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/hw/block/block.c b/hw/block/block.c index b91e2b6d7e..b6c80ab0b7 100644 --- a/hw/block/block.c +++ b/hw/block/block.c @@ -108,20 +108,6 @@ bool blkconf_geometry(BlockConf *conf, int *ptrans, unsigned cyls_max, unsigned heads_max, unsigned secs_max, Error **errp) { - DriveInfo *dinfo; - - if (!conf->cyls && !conf->heads && !conf->secs) { - /* try to fall back to value set with legacy -drive cyls=... */ - dinfo = blk_legacy_dinfo(conf->blk); - if (dinfo) { - conf->cyls = dinfo->cyls; - conf->heads = dinfo->heads; - conf->secs = dinfo->secs; - if (ptrans) { - *ptrans = dinfo->trans; - } - } - } if (!conf->cyls && !conf->heads && !conf->secs) { hd_geometry_guess(conf->blk, &conf->cyls, &conf->heads, &conf->secs, |