qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] vhdx: Return true for bdrv_has_zero_init


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] vhdx: Return true for bdrv_has_zero_init
Date: Fri, 5 Dec 2014 12:49:22 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 05.12.2014 um 11:26 hat Kevin Wolf geschrieben:
> Like for most other image formats, vhdx images read as all zero in qemu
> after their creation (we're taking advantage from the fact that qemu has
> just created the image, because PAYLOAD_BLOCK_NOT_PRESENT actually means
> undefined rather than zeroed according to the spec).
> 
> This fixes that 'qemu-img convert' to vhdx fully populates the image.
> 
> Signed-off-by: Kevin Wolf <address@hidden>

Jeff, another thing that Max found while we looked at the spec is that
the 1.0 spec defines PAYLOAD_BLOCK_UNMAPPED as 3, but we define it as 5.
It appears that the 0.95 spec actually had it that way.

Should we handle both 3 and 5 as unmapped?

Kevin



reply via email to

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