From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPecH-0003p8-Gl for qemu-devel@nongnu.org; Wed, 02 May 2012 14:49:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPecF-0000Vu-Oi for qemu-devel@nongnu.org; Wed, 02 May 2012 14:49:33 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:44212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPecF-0000Sp-GN for qemu-devel@nongnu.org; Wed, 02 May 2012 14:49:31 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 2 May 2012 19:49:28 +0100 Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q42InQUn2650308 for ; Wed, 2 May 2012 19:49:26 +0100 Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q42InQBZ020632 for ; Wed, 2 May 2012 12:49:26 -0600 Message-ID: <4FA181B5.3010608@de.ibm.com> Date: Wed, 02 May 2012 20:49:25 +0200 From: Christian Borntraeger MIME-Version: 1.0 References: <1ec34b9b-f63c-4d11-ab0b-4a8a48920561@zmail13.collab.prod.int.phx2.redhat.com> <4FA12E6E.9040004@suse.de> <4FA1446C.6020904@de.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] geometry detection: use HDIO_GETGEO List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Heinz Graalfs , qemu-devel , Jens Freimann , Cornelia Huck , Paolo Bonzini , Stefan Weinhuber , Einar Lueck >>> Well, if guessing is a function >>> >>> guess_size(disk_size, block_size) >>> >>> then we would be able to do the same on an image file. Christian, would that work? >> >> I think that the geometry values can not always be guessed correctly based on >> block_size and disk_size. >> >> Stefan, can you clarify that? >> >> If we cannot reliably guess the geometry based on blocksize and size, I still think >> that we should use the host values, e.g. after checking that BIODASDINFO2 returns >> successfully. > > Yeah, but only if it's always possible to force a specific geometry through the command line - otherwise reproducability suffers. That is already possible, with the exception of the sector part of the geometry (see the other patch :-) ) Christian