From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EefA1-0005zK-OJ for qemu-devel@nongnu.org; Tue, 22 Nov 2005 15:54:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eef9z-0005xq-M6 for qemu-devel@nongnu.org; Tue, 22 Nov 2005 15:54:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eef9z-0005xk-IJ for qemu-devel@nongnu.org; Tue, 22 Nov 2005 15:54:39 -0500 Received: from [64.233.162.200] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eef9z-0003lp-RH for qemu-devel@nongnu.org; Tue, 22 Nov 2005 15:54:39 -0500 Received: by zproxy.gmail.com with SMTP id z3so1025694nzf for ; Tue, 22 Nov 2005 12:54:38 -0800 (PST) Message-ID: <2ad73a0511221248m4fc235c4rd9bcdcfad38540b3@mail.gmail.com> Date: Tue, 22 Nov 2005 18:48:12 -0200 From: =?ISO-8859-1?Q?Andr=E9_Braga?= MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [Qemu-devel] Suggestion: additional parameter to specify raw disk size 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 Under Windows hosts at least, QEMU is unable to detect the real size of a partition when the \\.\drive: syntax is used. I suspect *nix hosts are affected as well as I somehow doubt that QEMU checks the partition table for partition geometries... For this reason, I suggest having an additional parameter to tell QEMU the partition size in sectors. (No, -hdachs currently can't handle this). Maybe expanding -hdachs to support different forms of translation, and turning it into a full-blown -hdgeom command, like -hdgeom hda,lba,31455270 -hdgeom hdb,chs,16383,16,63,lba Thoughts, comments? Cheers, A.