]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the dynamic VHD format to work with qemu. The size of the disk
authormarcel <marcel@FreeBSD.org>
Fri, 7 Aug 2015 04:27:51 +0000 (04:27 +0000)
committermarcel <marcel@FreeBSD.org>
Fri, 7 Aug 2015 04:27:51 +0000 (04:27 +0000)
commitc071cf56f2033188df3f7448009d6b2b5d3bba0a
tree65226969243b177c64030cd2388ab031a640051f
parent54470b68ed22f9b7704f72861194a153faca2af6
Fix the dynamic VHD format to work with qemu. The size of the disk
is taken to match the geometry and only when the geometry is max'd
out, is the actual recorded size taken.

Note that qemu has the same logic for the fixed VHD format. However
that is known to conflict with Microsoft Azure, where the recorded
size of the image is what counts.

Pointed out by: gjb@
usr.bin/mkimg/vhd.c