qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 2/5] vpc: Ignore geometry for large images


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v2 2/5] vpc: Ignore geometry for large images
Date: Tue, 03 Mar 2015 09:59:05 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 2015-03-03 at 05:41, Peter Lieven wrote:
From: Kevin Wolf <address@hidden>

The CHS calculation as done per the VHD spec imposes a maximum image
size of ~127 GB. Real VHD images exist that are larger than that.

Apparently there are two separate non-standard ways to achieve this:
You could use more heads than the spec does - this is the option that
qemu-img create chooses.

However, other images exist where the geometry is set to the maximum
(65535/16/255), but the actual image size is larger. Until now, such
images are truncated at 127 GB when opening them with qemu.

This patch changes the vpc driver to ignore geometry in this case and
only trust the size field in the header.

Signed-off-by: Kevin Wolf <address@hidden>
[PL: Fixed maximum geometry in the commit msg]
Signed-off-by: Peter Lieven <address@hidden>
---
  block/vpc.c | 10 ++++------
  1 file changed, 4 insertions(+), 6 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

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