From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoWVn-0002hZ-VD for qemu-devel@nongnu.org; Tue, 10 Jul 2012 05:13:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoWVh-0002Yv-E3 for qemu-devel@nongnu.org; Tue, 10 Jul 2012 05:13:39 -0400 Received: from oxygen.pond.sub.org ([78.46.104.156]:57906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoWVh-0002X8-50 for qemu-devel@nongnu.org; Tue, 10 Jul 2012 05:13:33 -0400 From: Markus Armbruster Date: Tue, 10 Jul 2012 11:12:39 +0200 Message-Id: <1341911575-7306-14-git-send-email-armbru@redhat.com> In-Reply-To: <1341911575-7306-1-git-send-email-armbru@redhat.com> References: <1341911575-7306-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH v3 13/29] blockdev: Save geometry in DriveInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, blauwirbel@gmail.com, stefanha@linux.vnet.ibm.com, pbonzini@redhat.com In preparation of purging it from the block layer, which will happen later in this series. Signed-off-by: Markus Armbruster --- 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