freebsd-skq/usr.bin/mkimg
Benno Rice 459a61fd2d Add the ability to specify absolute and relative offsets to size partitions.
To create hybrid boot media we want to specify a partition at a known location.
This extends the syntax of size partitions to include an optional offset that
can be absolute or relative. It also introduces validation to make sure that
this hasn't resulted in overlapping partitions. I haven't added this to the
file and process partition specifications yet but the mechanics are designed
such that if someone comes up with a good way of specifying the offset it
will be fairly easy to add in.

Reviewed by:	imp
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D14916
2018-04-12 15:47:47 +00:00
..
tests Update the usr.bin/mkimg golden test output files after ^/head@r319125 2017-05-31 08:01:12 +00:00
apm.c o Provide a private definition for UUIDs (mkimg_uuid_t) because 2016-10-18 01:55:07 +00:00
bsd.c o Provide a private definition for UUIDs (mkimg_uuid_t) because 2016-10-18 01:55:07 +00:00
ebr.c o Provide a private definition for UUIDs (mkimg_uuid_t) because 2016-10-18 01:55:07 +00:00
endian.h Avoid depending on the <sys/endian.h> header for le*enc and be*enc. 2016-09-26 01:06:32 +00:00
format.c Prefer <stdint.h> over <sys/types.h>. While here remove redundant 2016-10-03 02:37:28 +00:00
format.h Replace the use of linker sets with constructors for both the 2016-09-25 22:57:59 +00:00
gpt.c mkimg: Correct an off by one error in the PMBR size 2017-05-29 12:51:02 +00:00
image.c Allow building mkimg as cross-tool 2017-03-03 01:56:55 +00:00
image.h Make image_copyout_zeroes() an interface function. 2015-08-03 01:24:48 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mbr.c Add a new flag to mkimg (-a num) to specify the active partition for 2016-10-18 05:43:12 +00:00
mkimg.1 mkimg: Add -C argument to specify maximum capacity 2017-05-10 09:36:34 +00:00
mkimg.c Add the ability to specify absolute and relative offsets to size partitions. 2018-04-12 15:47:47 +00:00
mkimg.h Allow building mkimg as cross-tool 2017-03-03 01:56:55 +00:00
qcow.c mkimg(1): let calloc(3) do the multiplication. 2017-03-13 20:14:07 +00:00
raw.c Prefer <stdint.h> over <sys/types.h>. While here remove redundant 2016-10-03 02:37:28 +00:00
scheme.c Prefer <stdint.h> over <sys/types.h>. While here remove redundant 2016-10-03 02:37:28 +00:00
scheme.h Add the ability to specify absolute and relative offsets to size partitions. 2018-04-12 15:47:47 +00:00
uuid.c Allow building mkimg as cross-tool 2017-03-03 01:56:55 +00:00
vhd.c o Provide a private definition for UUIDs (mkimg_uuid_t) because 2016-10-18 01:55:07 +00:00
vmdk.c Prefer <stdint.h> over <sys/types.h>. While here remove redundant 2016-10-03 02:37:28 +00:00
vtoc8.c o Provide a private definition for UUIDs (mkimg_uuid_t) because 2016-10-18 01:55:07 +00:00