freebsd-dev/usr.bin/mkimg
Marcel Moolenaar 38501a4664 Add support for QCOW version 1. Version 2 is partially implemented.
And because of that, it's entirely disabled for now. Both versions
are similar enough that a single header definition works for both
of them. The only "diverting" side-effect is that the union of the
two is larger than the official V1 header.

What this means for our V1 support is that we can't put the L1 table
adjacent to the V1 header (i.e. at offset 0x30 in the file), unless
we revert to hackery and klugery. Let's not. Instead, we align the L1
table at the cluster boundary. This is in line with the V2 layout and
perfectly ok for V1 anyway (ok -- as far as I've seen so far).
Due to the alignment, our V1 image seems to be 1 cluster larger than
the V1 image created by qemu-img (on average).

Compression of the clusters is not supported at this time.

MFC after:	2 months
2014-09-22 15:05:28 +00:00
..
tests Add unit tests for mkimg(1): 2014-09-20 21:02:54 +00:00
apm.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
bsd.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
ebr.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
format.c MFuser/marcel/mkimg: 2014-05-15 19:19:57 +00:00
format.h MFuser/marcel/mkimg: 2014-05-15 19:19:57 +00:00
gpt.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
image.c Add image_data() for checking whether a sequence of blocks has data. 2014-07-15 04:39:23 +00:00
image.h Add image_data() for checking whether a sequence of blocks has data. 2014-07-15 04:39:23 +00:00
Makefile Add support for QCOW version 1. Version 2 is partially implemented. 2014-09-22 15:05:28 +00:00
mbr.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
mkimg.1 Add support for adding empty partition entries. I.e. skip partition 2014-09-12 20:05:08 +00:00
mkimg.c Add support for adding empty partition entries. I.e. skip partition 2014-09-12 20:05:08 +00:00
mkimg.h Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
pc98.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
qcow.c Add support for QCOW version 1. Version 2 is partially implemented. 2014-09-22 15:05:28 +00:00
raw.c Add VHD support to mkimg(1). VHD is used by Xen and Microsoft's Hyper-V 2014-07-03 20:31:43 +00:00
scheme.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
scheme.h Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00
vhd.c Fix builds on older FreeBSD versions and/or non-FreeBSD machines: 2014-07-23 18:05:39 +00:00
vmdk.c Create a redundant grain directory and table. Previously we were 2014-08-09 04:47:12 +00:00
vtoc8.c Fix partition alignment and image rounding when any of -P (block size), 2014-09-19 23:16:02 +00:00