diff options
author | Markus Armbruster <armbru@redhat.com> | 2012-07-11 15:08:39 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-07-17 16:48:32 +0200 |
commit | b7eb0c9f95e50239ce5b5266373dc52c85e75299 (patch) | |
tree | b82a0d11cbb8466b37c3684f2c873b78c52eef4b /hw/block-common.h | |
parent | 577d0a38070d1d6c4c7fab5c2054380770b1ec6b (diff) | |
download | qemu-b7eb0c9f95e50239ce5b5266373dc52c85e75299.zip qemu-b7eb0c9f95e50239ce5b5266373dc52c85e75299.tar.gz qemu-b7eb0c9f95e50239ce5b5266373dc52c85e75299.tar.bz2 |
hw/block-common: Factor out fall back to legacy -drive cyls=...
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block-common.h')
-rw-r--r-- | hw/block-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/block-common.h b/hw/block-common.h index 52bddda..bb808f7 100644 --- a/hw/block-common.h +++ b/hw/block-common.h @@ -60,6 +60,8 @@ static inline unsigned int get_physical_block_exp(BlockConf *conf) /* Configuration helpers */ void blkconf_serial(BlockConf *conf, char **serial); +int blkconf_geometry(BlockConf *conf, int *trans, + unsigned cyls_max, unsigned heads_max, unsigned secs_max); /* Hard disk geometry */ |