From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjvWz-0003P0-MT for qemu-devel@nongnu.org; Mon, 22 Oct 2007 07:33:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjvWv-0003K8-2l for qemu-devel@nongnu.org; Mon, 22 Oct 2007 07:33:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjvWu-0003Jq-ST for qemu-devel@nongnu.org; Mon, 22 Oct 2007 07:33:09 -0400 Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjvWu-0006rS-FS for qemu-devel@nongnu.org; Mon, 22 Oct 2007 07:33:08 -0400 Received: by wa-out-1112.google.com with SMTP id k22so1675786waf for ; Mon, 22 Oct 2007 04:33:06 -0700 (PDT) Message-ID: <219e947f0710220433l1d652092kd238d6ccb8aeb95a@mail.gmail.com> Date: Mon, 22 Oct 2007 14:33:06 +0300 From: "Ivan Kalvachev" Subject: Re: [Qemu-devel] [PATCH] Physical hard disk drive for win32 In-Reply-To: <47190FA7.80108@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <001d01c6df8e$2de302c0$0464a8c0@athlon> <7fac565a0609240214u5eca5cedka8a023ab562a87f7@mail.gmail.com> <002501c6dfd2$5e5ae820$0464a8c0@athlon> <47190FA7.80108@mail.berlios.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 2007/10/19, Stefan Weil : > Hi, > > raw harddisk access for Windows (//./PhysicalDrive0) gives wrong disk sizes. > You can check this by booting a harddisk with the GRUB bootloader installed > and using GRUB's geometry command. > > The current QEMU code uses IOCTL_DISK_GET_DRIVE_GEOMETRY which is marked > as obsolete by MS. > > The appended patch gives correct results. Please apply it to CVS. > > Stefan > > Description of block-raw.patch: > > * replace IOCTL_DISK_GET_DRIVE_GEOMETRY by IOCTL_DISK_GET_DRIVE_GEOMETRY_EX According to http://msdn2.microsoft.com/en-us/library/aa365171.aspx this function requires Win XP or Vista. Is qemu supported only on these?