From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mlf6S-0002He-0g for qemu-devel@nongnu.org; Thu, 10 Sep 2009 04:34:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mlf6N-0002F6-A6 for qemu-devel@nongnu.org; Thu, 10 Sep 2009 04:34:03 -0400 Received: from [199.232.76.173] (port=49659 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mlf6N-0002F3-3J for qemu-devel@nongnu.org; Thu, 10 Sep 2009 04:33:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33410) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mlf6M-0003l4-Bb for qemu-devel@nongnu.org; Thu, 10 Sep 2009 04:33:58 -0400 Message-ID: <4AA8B9B3.9040002@redhat.com> Date: Thu, 10 Sep 2009 10:32:51 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] More qcow2 bugs? - qemu-img convert/commit References: <20090909232654.GA20719@shareable.org> <4AA8B865.8000809@redhat.com> In-Reply-To: <4AA8B865.8000809@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: qemu-devel@nongnu.org Am 10.09.2009 10:27, schrieb Kevin Wolf: > Am 10.09.2009 01:26, schrieb Jamie Lokier: >> 37% is large enough to be a clue: Does it simply expand the qcow2 file >> without reading the backing file at all? A quick strace shows that >> indeed, it does *open* the backing file and it does read the backing >> file's header, but after that it doesn't read it at all. >> >> Did I miss something obvious which means this is ok? > > No, this definitely looks like a bug. I tend to suspect qemu-img rather > than qcow2, though. After all, your qcow2 image works when a VM reads it > and from a qcow2 perspective there should be no difference from reading > in qemu-img. > > I'll have a look at it. Actually, first of all, which qemu version are you using? There is a qemu-iotests test case for qemu-img convert with backing files and git master passes it for me. However, there was a fix to qemu-img in July (commit d032044fb97d525ae93fb4c96713a5c467044c17) concerning conversion with backing files. Kevin