qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH 01/10] qcow2: Write feature table only for v3 im


From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH 01/10] qcow2: Write feature table only for v3 images
Date: Mon, 11 Jan 2016 16:20:43 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 22.12.2015 um 21:20 hat Eric Blake geschrieben:
> On 12/22/2015 09:46 AM, Kevin Wolf wrote:
> > Version 2 images don't have feature bits, so writing a feature table to
> > those images is kind of pointless.
> 
> Fortunately, it is also harmless; even the v2 spec allowed for unknown
> extension headers.

With 512 byte clusters it could use up important space that you wanted
to use for the backing file path!

Okay, okay, maybe not that critical... ;-)

> > 
> > Signed-off-by: Kevin Wolf <address@hidden>
> > ---
> >  block/qcow2.c              | 48 
> > ++++++++++++++++++++++++----------------------
> >  tests/qemu-iotests/031.out | 12 +-----------
> >  tests/qemu-iotests/061.out | 15 ---------------
> >  3 files changed, 26 insertions(+), 49 deletions(-)
> > 
> 
> Reviewed-by: Eric Blake <address@hidden>
> 
> Did you test that amend'ing an image from v2 to v3 adds the table, and
> downgrading from v3 to v2 drops the table?

I'm not sure if I tested it manually, but I'm updating the results of
test case 061, which tests both upgrades and downgrades, so if your
review was thorough enough, the answer is yes.

Kevin

Attachment: pgps7fSsXMM9p.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]