History log of /freebsd-head/usr.bin/mkimg/vmdk.c
Revision Date Author Comments
1cceceb8e256cc06c9697066cd42540b588287e7 06-Jan-2019 delphij <delphij@FreeBSD.org> Remove unneeded headers.

MFC after: 1 month
5e84416ac964829fd8974acdd790791ef1d2aa7e 03-Oct-2016 marcel <marcel@FreeBSD.org> Prefer <stdint.h> over <sys/types.h>. While here remove redundant
inclusion of <sys/queue.h>.

Move the inclusion of the disk partitioning headers out of order
and inbetween standard headers and local header. They will change
in a subsequent commit.
741bf1228e837b7eb7ffbfe84f3c9544c0246ffe 26-Sep-2016 marcel <marcel@FreeBSD.org> Avoid depending on the <sys/endian.h> header for le*enc and be*enc.
Not only is the header unportable, the encoding/decoding functions
are as well. Instead, duplicate the handful of small inlines we
need into a private header called endian.h.

Aside: an alternative approach is to move the encoding/decoding
functions to a separate system header. While the header is still
nonportable, such an approach would make it possible to re-use the
definitions by playing games with include paths. This may be the
preferred approach if more (build) utilities need this. This
change does not preclude that. In fact, it makes it easier.
80204cc623c4e71e0a1a36bb8e5d0b416e5f530c 12-Jul-2016 pfg <pfg@FreeBSD.org> mkimg(1): minor cleanups with argument order in calloc(3).

Generally the first argument in calloc is supposed to stand for a count
and the second for a size. Try to make that consistent. While here,
attempt to make some use of the overflow detection capability in
calloc(3).
00d578928eca75be320b36d37543a7e2a4f9fbdb 27-May-2016 grehan <grehan@FreeBSD.org> Create branch for bhyve graphics import.
876031809277823cc63a8fc6e99d7fdd020fc623 13-Aug-2014 marcel <marcel@FreeBSD.org> MFC 269745: Create a redundant grain directory and table.
e23364d7200439e53ad8369640337915a6250268 09-Aug-2014 marcel <marcel@FreeBSD.org> Create a redundant grain directory and table. Previously we were
cheating by assigning the same sector offset to both directories,
but it seems that VirtualBox doesn't like that. Neither does
qemu from the looks of it. We now actually write the directory
and table twice.

MFC after: 3 days
37a9f7be2fd32cf24c75d466cacac9ce83a3766b 28-Jul-2014 marcel <marcel@FreeBSD.org> MFC r268236,268264,268524,268646,268802,269021:
This brings VHD support to mkimg(1); both dynamic and fixed file formats.
Dynamic VHD and VMDK file images are now sparsely written, meaning that
"free" sectors do not occupy space.

Relnotes: yes
ca1d5922c55b13221ec863517dce4d9329318a56 15-Jul-2014 marcel <marcel@FreeBSD.org> Add image_data() for checking whether a sequence of blocks has data.
Use this for VHD and VMDK to avoid allocating space in the image
for empty sectors.

Note that this negatively affects performance because mkimg uses a
temporary file for the intermediate storage. When mkimg has better
internal book keeping, performance can be significantly improved.
a33844e926a330bdb5c1966b112da53d2735b82a 02-Jul-2014 marcel <marcel@FreeBSD.org> MFC mkimg(1) -- revisions 268159, 268134, 266556, 266514, 266513,
266512, 266511, 266510, 266509, 266176, 265468, 265467,
265462, 265170, 263926, 263924, 263923, 263919 and 263918.

Revision 267182 changed mkimg.1 alongside other unrelated manpages.
The change to mkimg.1 has been applied without registering a merge
of the revision. This allows a future merge of r267182 to happen.

Relnotes: yes