From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dze8j-00045L-Tu for qemu-devel@nongnu.org; Mon, 01 Aug 2005 13:31:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dze8c-00041Y-H1 for qemu-devel@nongnu.org; Mon, 01 Aug 2005 13:31:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dze8c-000413-1B for qemu-devel@nongnu.org; Mon, 01 Aug 2005 13:31:42 -0400 Received: from [195.241.79.176] (helo=smtp-out1.tiscali.nl) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DzeGl-0004ar-SO for qemu-devel@nongnu.org; Mon, 01 Aug 2005 13:40:08 -0400 Received: from [82.169.5.92] (helo=[192.168.1.66]) by smtp-out1.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1Dze4X-000524-Hl for ; Mon, 01 Aug 2005 19:27:29 +0200 Message-ID: <42EE5B76.5000702@cs.vu.nl> Date: Mon, 01 Aug 2005 19:27:18 +0200 From: "J.N. Herder" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Possible bug? 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 Hi all, I'm having some troubles with QEMU's hard disk images and may have bumped into a bug. I'm trying to import data into my emulated MINIX, but somehow it is truncated. I successfully created a qemu-img called hda.img of 512 MB and installed the latest version from MINIX on it. Trying to import files by using the file as hdb image and reading from /dev/hdb in the emulated MINIX works perfectly fine for small files. For an import file above 1.5 MB the following weirdiness happens: In linux: $ qemu -hda hda.img -hdb import.tar.gz After booting MINIX with QEMU: # dd if=/dev/hdb of=import.tar.gz bs=1 count=1672014 # ls -l import.tar.gz -rw-r--r-- 1 root operator 1548288 Jul 31 20:34 import.tar.gz Somehow the file is truncated at exactly 1.5 MB, while the dd output indicates that all records were successfully read. Inspection of /dev/hdb with MINIX' part tools also learns that the QEMU emulated hard disk is 1512 KB. I'd like to note that for several small files (less than 1 MB) this procedure worked fine. Another file of 75582464 bytes was truncated at 73584 KB. Could this behaviour be caused by a bug in QEMU? Please CC the reply to jnherder@cs.vu.nl as I'm not a list member. Thanks, Jorrit