]> git.proxmox.com Git - qemu.git/commit
block/vpc: Fix size calculation
authorStefan Weil <stefan@kiwi.(none)>
Thu, 7 Feb 2013 19:26:52 +0000 (20:26 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 11 Feb 2013 14:14:41 +0000 (08:14 -0600)
commitf880defbb06708d30a38ce9f2667067626acdd38
tree2a9ba716053aab8888be44b39e4fc2678a403f2e
parent2c5a7f20112615ce13a3434ab90bee1ed8d44ebd
block/vpc: Fix size calculation

The size calculated from the CHS values is not the real image (disk) size,
but usually a smaller value. This is caused by rounding effects.

Only older operating systems use CHS. Such guests won't be able to use
the whole disk. All modern operating systems use the real size.

This patch fixes https://bugs.launchpad.net/qemu/+bug/1105670/.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1360265212-22037-1-git-send-email-sw@weilnetz.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/vpc.c