From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQWpu-0001Av-Hh for qemu-devel@nongnu.org; Wed, 06 Jun 2018 07:42:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQWpt-0007PQ-Lm for qemu-devel@nongnu.org; Wed, 06 Jun 2018 07:42:42 -0400 Date: Wed, 6 Jun 2018 12:42:28 +0100 From: "Richard W.M. Jones" Message-ID: <20180606114228.GH1455@redhat.com> References: <20180528183058.GG2209@redhat.com> <20180528183833.GJ4580@localhost.localdomain> <20180528212054.GH2209@redhat.com> <20180528212510.GC4660@redhat.com> <20180529064415.GA4756@localhost.localdomain> <2b3eef00-f326-c1e6-0e4b-b7602646eec4@redhat.com> <20180605092159.GA2544@work-vm> <46ef4200-eccf-7e65-d3a0-69e4a7414b51@redhat.com> <20180606111406.GD2660@work-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606111406.GD2660@work-vm> Subject: Re: [Qemu-devel] storing machine data in qcow images? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: Max Reitz , Kevin Wolf , armbru@redhat.com, qemu-block@nongnu.org, "Michael S. Tsirkin" , qemu-devel@nongnu.org, stefanha@redhat.com On Wed, Jun 06, 2018 at 12:14:07PM +0100, Dr. David Alan Gilbert wrote: > The problem with having a separate file is that you either have to copy > it around with the image or have an archive. If you have an archive > you have to have an unpacking step which then copies, potentially a lot > of data taking some reasonable amount of time. Storing a simple bit > of data with the image avoids that. This isn't really true. For OVA (ie. tar) we don't unpack them. Adding file.offset and file.size in qemu's raw driver was crucial to that optimization. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org