qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block: vhdx - force FileOffsetMB field to '0' f


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH] block: vhdx - force FileOffsetMB field to '0' for certain block states
Date: Fri, 23 Jan 2015 09:47:50 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 2015-01-20 at 16:01, Jeff Cody wrote:
The v1.0.0 spec calls out PAYLOAD_BLOCK_ZERO FileOffsetMB field as being
'reserved'.  In practice, this means that Hyper-V will fail to read a
disk image with PAYLOAD_BLOCK_ZERO block states with a FileOffsetMB
value other than 0.

The other states that indicate a block that is not there
(PAYLOAD_BLOCK_UNDEFINED, PAYLOAD_BLOCK_NOT_PRESENT,
  PAYLOAD_BLOCK_UNMAPPED) have multiple options for what FileOffsetMB may
be set to, and '0' is explicitly called out as an option.

For all the above states, we will also just set the FileOffsetMB value
to 0.

Signed-off-by: Jeff Cody <address@hidden>
---
  block/vhdx.c | 13 ++++++++++++-
  1 file changed, 12 insertions(+), 1 deletion(-)

Thanks, applied to my block tree:

https://github.com/XanClic/qemu/commits/block



reply via email to

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