Age | Commit message (Collapse) | Author |
|
with "0x".
Pointed out by Philippe Meunier.
|
|
using 'flag <part #>' to make a partition the only bootable partition.
Just turn off the bootable bit in the other partitions.
ok dlg@
|
|
.. INT64_MAX decimal values..
Easier to specify the 64 bits of GPT partition attributes and
0x8000000000000000 (a.k.a. MS_NOAUTOMOUNT, a.k.a. 1 << 63)
becomes accessable.
Prompted by bug report and testing by Philippe Meunier. Thanks!
ok dlg@
|
|
string. Don't rely on GPT partition name containing a terminating
zero or the reserved bytes beyond gp_name being properly
initialized to zero.
|
|
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.
|
|
than Basic Data partitions. e.g. Windows Recovery and Windows
Reserved partitions.
So tweak verbiage to make clear they are MS attributes by
prepending 'MS' and always display them.
No functional change other than modified fdisk -v output.
|
|
|
|
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.
|
|
Nuke unused HELPBUFSZ.
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.
|
|
rather than assuming they are the same size. Zero
destination entries when no source partition available.
No intentional functional change.
|
|
starting to edit an unused GPT partition.
|
|
No intentional functional change.
|
|
by function return values is not fiddled with.
No intentional functional change.
|
|
|
|
and make 'fdisk -v' display their names (NoAutoMount, Hidden,
Shadow, ReadOnly).
Shift 1ULL instead of 1 to make it clear these are uint64_t
flags. Makes clang happier.
|
|
and BOOTABLE, set BOOTABLE attribute bit instead of using the
incorrect GPTDOSACTIVE value, have 'fdisk -v' print out GPT
partition attributes if any of the 64 bits are set, don't spoof
any partition with REQUIRED bit set.
Prompted by kettenis@ stumbling across a machine with 40+ (!!)
REQUIRED GPT partitions.
Tested & ok kettenis@
|
|
usable LBA area of the device the GPT is currently inhabiting.
Makes GPT display as informative as MBR display.
In passing, eliminate possible underflow in partition size
calculation.
ok deraadt@
|
|
end of the device the MBR is currently inhabiting.
Prompted by some interesting MBR's from France, verbiage
suggestion from deraadt@, ok miod@
|