qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v3 13/29] blockdev: Save geometry in DriveInfo


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH v3 13/29] blockdev: Save geometry in DriveInfo
Date: Tue, 10 Jul 2012 11:12:39 +0200

In preparation of purging it from the block layer, which will happen
later in this series.

Signed-off-by: Markus Armbruster <address@hidden>
---
 blockdev.c |    4 ++++
 blockdev.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/blockdev.c b/blockdev.c
index a85a429..161985b 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -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) {
diff --git a/blockdev.h b/blockdev.h
index 26454c9..bc8c2dc 100644
--- a/blockdev.h
+++ b/blockdev.h
@@ -35,6 +35,7 @@ struct DriveInfo {
     int unit;
     int auto_del;               /* see blockdev_mark_auto_del() */
     int media_cd;
+    int cyls, heads, secs, trans;
     QemuOpts *opts;
     char serial[BLOCK_SERIAL_STRLEN + 1];
     QTAILQ_ENTRY(DriveInfo) next;
-- 
1.7.6.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]