Age | Commit message (Collapse) | Author |
|
blanks to the end of the line.
Unexpected line wrapping noticed by kettenis@, cause spotted by deraadt@
Nuke an unused variable in passing.
|
|
both CHS and LBA values in the MBR partition.
Restores pre-7.0 initialization of MBR partition start/end, using
slightly less opaque code that retains the slightly different
initialization required by GPT protective MBR's.
Fixes booting from disks >8G on systems where the BIOS uses CHS.
Encountered by Paul de Weerd on his Alix.2 using BIOS 0.99.
Much diagnosis and testing by Paul of various iterations. Thanks!
|
|
PRT_prt_to_dp() and PRT_parse() to PRT_dp_to_prt().
No functional change.
|
|
partitions. Inadvertantly lost in transition to new menu logic.
|
|
No functional change.
|
|
No functional change.
|
|
prepare for future uses.
No functional change.
|
|
find_gpt_desc() and find_mbr_desc().
No functional change.
|
|
No functional change.
|
|
i.e. two digits.
|
|
No intentional functional change.
|
|
No functional change.
|
|
checking mbr_type[N].mt_desc and gpt_type[N].gt_desc before using
name on menu when printing out partition tables.
Tweak logic in find_mbr_type() and find_gpt_type() to be a bit
more paranoid.
Tweak function/variable names to be more in line to usage.
No functional change as all mt_desc and gt_desc are currently
NULL.
|
|
all the GPT partition types known to mankind. a.k.a. Wikipedia,
Linux, and various BSD's.
Makes it easier to discuss/add/remove/check GUID's known to
fdisk(8).
No functional change.
|
|
entries with attributes together.
No intentional functional change.
|
|
but restores compilability with older compilers such as gcc.
No intentional functional change.
|
|
readable, less prone to typos.
No intentional functional change.
|
|
partition types from menu building and display.
Some GPT partition names change to match their MBR bretheren.
No intentional functional change.
|
|
|
|
returning struct uuid's use 'uuid' in their names.
Lengthen a pointlessly short line.
No functional change.
|
|
GUID strings. Consistently use strcasecmp() when comparing
GUID's, allowing use of simple 'char *' for gt_guid.
No intentional functional change.
|
|
limit check in PRT_menuid_to_guid().
No functional change.
|
|
variables related to gpt partitions. Makes it clear that there is
no required tie between mbr partition types and gpt partition
types.
No functional change.
|
|
use uuid_create_nil().
No functional change.
|
|
no type can be found. 0 is a valid type!
No functional change.
|
|
to the original input. Just zap it for now.
No functional change.
|
|
protection.
No functional change.
|
|
items result in the same GUID. Easier to spot and more resistant
to simple typos in a 36 character hex string.
No functional change.
|
|
and GPT partition GUIDs.
No functional change.
|
|
sibling find_gpt_type(), tweaking PRT_print_part() as needed.
No functional change.
|
|
width of output in printf() rather than "%-*s" and sizeof(name) +
1. Clearer, may even save some bytes as many names are shorter
than the max.
Rename PRT_print_mbrtypes() to PRT_print_mbrmenu() and
PRT_print_gpttypes() to PRT_print_gptmenu() to remove implied
completeness of list presented in menu.
No functional change.
|
|
shortness of the names.
No functional change.
|
|
partition entries.
Add GPT_UUID_LEGACY_MBR entry to list of known partition id's as
it is defined in the UEFI Standard.
|
|
end of the device the MBR is currently inhabiting.
Prompted by some interesting MBR's from France, verbiage
suggestion from deraadt@, ok miod@
|
|
#define GTATTR_PROTECT and GTATTR_PROTECT_EFISYS as bits in it.
Use GTATTR_PROTECT to replace the magic value of '1' indicating
the partition is protected. Use GTATTR_PROTECT_EFISYS to replace
hack of checking for "APFS" string in the names of partitions
that want the EFI System (a.k.a. 0xEF) partition to be preserved.
More flexible and easier to extend protections to new partition
types or add new attributes to partition types.
No intentional functional change.
|
|
one easy to find spot. Wrap the long lines of gpt_types[] to
make room for future expansion.
No functional change.
|
|
simplify PRT_protected_guid() by comparing GUID's with
uuid_compare() rather than converting them to strings and using
strncmp().
Further clarify logic by doing the EFI Sys dance only if
the GUID being tested is not marked as protected.
No intentional functional change.
|
|
and PRT_type_to_uuid() to PRT_type_to_guid() so the names clearly match
the field names being searched for.
No intentional functional change.
|
|
"FAT12" for partition types that are mapped to GPT_UUID_MSDOS.
No intentional functional change.
|
|
blanks in the arrays of type names, simplifying the code and
making better use of printf().
Along the way discover that "APFS Recovery" fits, so nuke the
annoying "AFPS Recovry" contraction.
No intentional functional change.
Some "APFS Recovery" nits pointed out by jsg@
|
|
on input/initialization and back to little-endian when writing to
disk.
Easier to read the code when letoh*() and uuid_[enc|dec]_*
invocations are minimized.
No intentional functional change.
ok jmatthew@
|
|
and then back to little-endian when writing to disk.
Reduces the number of invocations of the letoh*() and htole*()
functions by 90 or so. Also makes that code much easier to read.
No intentional functional change.
|
|
No intentional functional change.
|
|
scanning the GPT partition table. gh.gh_part_num reflects the actual
size of the table read from/written to the disk and scanning
possible entries between this value and the maximum allowed size
of a partition table is pointless.
No intentional functional change.
|
|
function find_gpt_type().
Use find_gpt_type() to simplify the functions obtaining
information from gpt_types[]. Add not yet used
PRT_uuid_to_protection() to allow simplification of GPT partition
protection code..
No intentional functional change.
|
|
|
|
|
|
auto-allocating the space on a disk whose GPT contains
any of the magic Apple partitions.
One step towards saving the firmware files on Apple
M1 machines when installing OpenBSD.
Tested & ok kettenis@
|
|
|
|
CHS information as required when writing MBR to disk, editing a partition in CHS
mode or printing MBR.
No intentional functional change.
|