From: Keir Fraser Subject: Re: The two image formats called qcow Date: Wed, 26 Mar 2008 14:02:39 +0000 Message-ID: References: <47EA559E.6000309@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <47EA559E.6000309@suse.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kevin Wolf , Otavio Salvador Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 26/3/08 13:54, "Kevin Wolf" wrote: > ioemu: Fix L1 table endianess of qcow images created by tapdisk > > The qemu/ioemu implementation of the qcow format uses a big endian L1 > table. tapdisk omits the necessary conversion, so qcow images have the > wrong endianess and cannot be read by correct implementations of qcow. > > This patch detects broken tapdisk images and converts their L1 tables to > big endian when the image file is opened in ioemu for the first time. > The fixed image has a new flag EXTHDR_L1_BIG_ENDIAN set in the extended > header. > > Note that a converted image cannot be opened by tapdisk again. Can we really tack an 'extended header' into a public format like qcow? -- Keir