]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the dynamic VHD format to work with qemu. The size of the disk
authorMarcel Moolenaar <marcel@FreeBSD.org>
Fri, 7 Aug 2015 04:27:51 +0000 (04:27 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Fri, 7 Aug 2015 04:27:51 +0000 (04:27 +0000)
commitc20f01c4ea0e1b30072bd53f47482df1378b36dc
tree65226969243b177c64030cd2388ab031a640051f
parente6330ffeeef3f149ddd9a6eb388d2d8ec94698af
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