summaryrefslogtreecommitdiff
path: root/sbin/fdisk/gpt.c
AgeCommit message (Expand)Author
2023-06-20Take more care to ensure name_to_string() always returns a properKenneth R Westerback
2023-06-19"%-Ns\n" is more appropriately "%s\n" to avoid adding extraneousKenneth R Westerback
2023-05-17Make function and symmetry obvious by renaming PRT_make() toKenneth R Westerback
2023-05-10Microsoft GPT partition attributes can appear on partitions otherKenneth R Westerback
2023-04-07Oops. Missed files in last commit.Kenneth R Westerback
2023-03-31Be more consistent in function naming. Functions taking orKenneth R Westerback
2023-03-25Rename *_sname fields/functions to *_name to remove impliedKenneth R Westerback
2023-03-06Use nitems() of source and destination partition arraysKenneth R Westerback
2023-03-04Don't whine about invalid start/end values whenKenneth R Westerback
2023-03-04Toss in some const's to ensure that static data pointed toKenneth R Westerback
2022-09-15Short names make for shorter and prettier lines.Kenneth R Westerback
2022-09-15Add GPTPARTATTR_MS_* defines for Microsoft basic data attributesKenneth R Westerback
2022-09-11Add #define's for GPT partition attribute bits REQUIRED, IGNOREKenneth R Westerback
2022-08-29Print warning when a GPT partition start or end is outside theKenneth R Westerback
2022-06-28Move debug-only variable 'i' to be with the other debug-onlyKenneth R Westerback
2022-05-10Align fdisk with the logic used in the kernel and allow theKenneth R Westerback
2022-05-06Rename PRT_uuid_to_[protection|typename] to PRT_uuid_to_[protected|sname],Kenneth R Westerback
2022-04-28Convert the internal GPT partition entries into host-endian formKenneth R Westerback
2022-04-25Push DISK_[read|write]sectors() down to disk.c local functionsKenneth R Westerback
2022-04-25gh_csum an gh_part_csum are not used between initializingKenneth R Westerback
2022-04-23Add missing uuid_dec_le() to init_gp() so -A works onKenneth R Westerback
2022-04-20Refine the GPT partition entry table validity check to ensureKenneth R Westerback
2022-04-20Simpify code manipulating GPT partition names by coalescingKenneth R Westerback
2022-04-20Eliminate some local pointers to gp[pn] and just use gp[pn].Kenneth R Westerback
2022-04-19Bring GPT_print_partition() into line with other functions being passedKenneth R Westerback
2022-04-19Move declaration of DEBUG-only variable inside #ifdef DEBUG.Kenneth R Westerback
2022-04-19Eliminate superfluous intermediate variables 'pncnt' now thatKenneth R Westerback
2022-04-18Convert the GPT header read from disk into a host-endian version,Kenneth R Westerback
2022-04-14Move ((gh_part_size % d_secsize) == 0) validity checkKenneth R Westerback
2022-04-13Correct a gh_part_csum calculation used in debug output.Kenneth R Westerback
2022-04-13Correct a gh_csum calculation used in debug output.Kenneth R Westerback
2022-04-13Eliminate a couple of 'XXX' assumptions by calculating the actualKenneth R Westerback
2022-03-16The 'status' parameter to uuid_* functions is uint32_t, not int.Kenneth R Westerback
2022-03-15Always use letoh32(gh.gh_part_num) instead of NGPTPARTITIONS whenKenneth R Westerback
2022-03-11Simple hack to preserve the EFI System partition whenKenneth R Westerback
2022-02-04Wrap some annoyingly long lines.Kenneth R Westerback
2022-02-04Remove CHS information from internal representation of MBR partitions. GenerateKenneth R Westerback
2022-01-02Stop writing big-endian checksums into the little-endian GPTKenneth R Westerback
2021-12-29Tweak some DEBUG output.Kenneth R Westerback
2021-12-28Tweak some DEBUG output.Kenneth R Westerback
2021-09-13disk.dk_size can't be 0 as we errx() if that happens duringKenneth R Westerback
2021-09-12Stop taking detour through unit_types[SECTORS] to findKenneth R Westerback
2021-08-24Add an #ifdef DEBUG/#endif chunk that dumps the entire GPT header whenKenneth R Westerback
2021-08-07Nuke unneeded #include's, one param.h -> types.h.Kenneth R Westerback
2021-08-06Cleanup, clarify and generally polish the MBR/GPT initializationKenneth R Westerback
2021-07-26Report write() and ioctl() errors encountered when writing GPT or MBR to disk.Kenneth R Westerback
2021-07-21Use a dedicated struct mbr to hold the GPT protective MBR,Kenneth R Westerback
2021-07-18Make GPT_read() obtain and validate the on-disk MBR itself, viaKenneth R Westerback
2021-07-16Compare pointer to NULL, not 0.Kenneth R Westerback
2021-07-16Be consistent and always return -1 to indicate failure.Kenneth R Westerback