From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBnI4-0003WR-3k for qemu-devel@nongnu.org; Tue, 20 Aug 2013 10:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBnHv-000694-OY for qemu-devel@nongnu.org; Tue, 20 Aug 2013 10:52:12 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:61438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBnHv-00068n-IA for qemu-devel@nongnu.org; Tue, 20 Aug 2013 10:52:03 -0400 Received: by mail-wg0-f42.google.com with SMTP id j13so4308227wgh.5 for ; Tue, 20 Aug 2013 07:52:02 -0700 (PDT) Date: Tue, 20 Aug 2013 16:51:59 +0200 From: Stefan Hajnoczi Message-ID: <20130820145159.GD5536@stefanha-thinkpad.redhat.com> References: <4A946BEF1E0D5A89DFF0499F@Ximines.local> <20130819112335.GA27849@localhost.localdomain> <1960DADA-9E1D-48EF-9AE4-2805F0787E70@alex.org.uk> <20130820014243.GA7602@localhost.localdomain> <90D0FA8B-A032-4608-9CAA-B5BC26DC4D75@alex.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90D0FA8B-A032-4608-9CAA-B5BC26DC4D75@alex.org.uk> Subject: Re: [Qemu-devel] vmdk stream-optimised format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh Cc: famz@redhat.com, qemu-devel@nongnu.org On Tue, Aug 20, 2013 at 07:51:40AM +0100, Alex Bligh wrote: > What I'm not sure of is whether the streaming format has to be written > sequentially from as opposed to random writes. I believe the way > qemu-img convert works, one can't guarantee the writes are > sequential. It should be possible to support stream-optimized VMDK writing in qemu-img convert. The file format supports non-sequential layout of data - each piece of guest data also has a logical block address with it. You can write out the grain table/directory at the end of the image file once you know how data is layed out. The VMDK spec is not great so I guess you'll also need a VMware setup to verify your code changes. Stefan