History log of /freebsd-current/usr.bin/mkimg/vhdx.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 036af105 20-Nov-2021 Ed Maste <emaste@FreeBSD.org>

mkimg: zero entry in vhdx_write_metadata

Otherwise _reserved might contain uninitialized data.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation


# e3312523 12-Jul-2020 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

Fix invalid VHDX generation for image larger than 4Gb

- Part of BAT payload location was lost due to invalid
BAT entry encoding type (32 bits instead of 64 bits)
- The sequence of PB/SB entries in BAT was broken due to
off-by-one index check. It worked for smaller than
4Gb because there were no SB entries in BAT.

MFC after: 1 day


# c78cd98b 08-Jun-2020 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

Add VHDX support to mkimg(1)

VHDX is the successor of Microsoft's VHD file format. It increases
maximum capacity of the virtual drive to 64TB and introduces features
to better handle power/system failures.

VHDX is the required format for 2nd generation Hyper-V VMs.

Reviewed by: marcel
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D25184