From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6LUS-00086C-FS for qemu-devel@nongnu.org; Thu, 23 Jan 2014 09:42:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6LUM-0001SX-3E for qemu-devel@nongnu.org; Thu, 23 Jan 2014 09:42:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6LUL-0001SL-RX for qemu-devel@nongnu.org; Thu, 23 Jan 2014 09:42:38 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0NEgZVI023274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Jan 2014 09:42:35 -0500 Date: Thu, 23 Jan 2014 15:42:32 +0100 From: Kevin Wolf Message-ID: <20140123144232.GF8474@dhcp-200-207.str.redhat.com> References: <1390461052-6840-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1390461052-6840-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] vmdk: Fix format specific information (create type) for streamOptimized List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, stefanha@redhat.com Am 23.01.2014 um 08:10 hat Fam Zheng geschrieben: > Previously the field is wrong: > > $ ./qemu-img create -f vmdk -o subformat=streamOptimized /tmp/a.vmdk 1G > > $ ./qemu-img info /tmp/a.vmdk > image: /tmp/a.vmdk > file format: vmdk > virtual size: 1.0G (1073741824 bytes) > disk size: 12K > Format specific information: > cid: 1390460459 > parent cid: 4294967295 > >>> create type: monolithicSparse > > > Signed-off-by: Fam Zheng Thanks, applied to the block branch. By the way, I tried converting a raw image to streamOptimised and got this: qemu-img: Could not write to allocated cluster for streamOptimized qemu-img: error while writing sector 63: Input/output error The problem seems to be that qemu-img tries to be clever and doesn't write out sparse parts, which breaks up the first cluster into multiple write requests. Adding -S 64 makes it work. Should we change something to get a working default? Kevin