diff options
author | Markus Armbruster <armbru@redhat.com> | 2012-07-10 11:12:39 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-07-17 16:48:30 +0200 |
commit | 317bb412293672ff930884d67235e970dad88566 (patch) | |
tree | 0bcc410e3b520333bdd614d6b1e006ad1b86a290 /blockdev.c | |
parent | 9139046c16688615023f35668660f6d3947a05d6 (diff) | |
download | hqemu-317bb412293672ff930884d67235e970dad88566.zip hqemu-317bb412293672ff930884d67235e970dad88566.tar.gz |
blockdev: Save geometry in DriveInfo
In preparation of purging it 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>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -530,6 +530,10 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) dinfo->type = type; dinfo->bus = bus_id; dinfo->unit = unit_id; + dinfo->cyls = cyls; + dinfo->heads = heads; + dinfo->secs = secs; + dinfo->trans = translation; dinfo->opts = opts; dinfo->refcount = 1; if (serial) { |