aboutsummaryrefslogtreecommitdiff
path: root/po/hu.po
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2015-03-03 11:41:54 +0100
committerMax Reitz <mreitz@redhat.com>2015-03-16 12:10:30 -0400
commit690cbb095a17c429513890d991bc57c98dd83912 (patch)
treee9d71fd03d753a438c605436f459e2bec04061e0 /po/hu.po
parent0444dceee48fed54e8334428fa57f9ff997736e8 (diff)
downloadqemu-690cbb095a17c429513890d991bc57c98dd83912.zip
qemu-690cbb095a17c429513890d991bc57c98dd83912.tar.gz
qemu-690cbb095a17c429513890d991bc57c98dd83912.tar.bz2
block/vpc: make calculate_geometry spec conform
The VHD spec [1] allows for total_sectors of 65535 x 16 x 255 (~127GB) represented by a CHS geometry. If total_sectors is greater than 65535 x 16 x 255 this geometry is set as a maximum. Qemu, Hyper-V and disk2vhd use this special geometry as an indicator to use the image current size from the footer as disk size. This patch changes vpc_create to effectively calculate a CxHxS geometry for the given image size if possible while rounding up if necessary. If the image size is too big to be represented in CHS we set the maximum and write the exact requested image size into the footer. This partly reverts commit 258d2edb, but leaves support for >127G disks intact. [1] http://download.microsoft.com/download/f/f/e/ffef50a5-07dd-4cf8-aaa3-442c0673a029/Virtual%20Hard%20Disk%20Format%20Spec_10_18_06.doc Signed-off-by: Peter Lieven <pl@kamp.de> Message-id: 1425379316-19639-4-git-send-email-pl@kamp.de Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'po/hu.po')
0 files changed, 0 insertions, 0 deletions