summaryrefslogtreecommitdiff
path: root/sbin/fdisk/gpt.c
AgeCommit message (Expand)Author
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
2021-07-15No need for separate b_sectors, b_offset and b_type variables. We have structKenneth R Westerback
2021-07-13Disk sector addresses are normally stored/provided in uint64_tKenneth R Westerback
2021-07-13Replace a stray use of letoh64() on gh_part_num andKenneth R Westerback
2021-07-12Toss 'const' in anywhere the compiler doesn't complain about, thus identifyingKenneth R Westerback
2021-07-12Final batch of struct field name tweaks. 'cmd_' for cmd, ut_' forKenneth R Westerback
2021-07-12Add 'dk_' prefix to struct disk field names.Kenneth R Westerback
2021-07-11Move ask_cmd(), ask_num(), ask_pid(), ask_string(), parse_b()Kenneth R Westerback
2021-07-11Add tabs to make variable declarations easierKenneth R Westerback
2021-07-11'return' is not a function call.Kenneth R Westerback
2021-06-28Add another epicycle to -A processing that ensures ONLY theKenneth R Westerback
2021-06-25Replace instances of the magic number '64' with a nice #defineKenneth R Westerback
2021-06-21Add -A option to "safely" initialize a GPT without removingKenneth R Westerback
2021-06-20Make -b available to architectures other than amd64 and i386.Kenneth R Westerback
2021-06-16Ensure that the '-i' command line option and the 'reinit [mbr]'Kenneth R Westerback
2021-06-14Somewhere in the recent churn a couple of memset()'sKenneth R Westerback
2021-06-13Don't ignore a GPT that claims the last usable LBA is locatedKenneth R Westerback
2021-06-13Fix lba_start >= lba_end debug message.Kenneth R Westerback
2021-06-12Ooops. Managed to typo 'gh' instead of 'gp' when copyingKenneth R Westerback
2021-06-12Abstract init_gh() and init_gp() from GPT_init().Kenneth R Westerback
2021-06-12GPT_get_header() and GPT_get_partition_table() are only usedKenneth R Westerback
2021-06-12When initializing a GPT always create an EFI SYS partition if theKenneth R Westerback
2021-06-12Create add_partition() and use in GPT_init() to initialize GPTKenneth R Westerback
2021-06-12Use a new variable 'gpbytes' rather than 'sizeof(gp)' to controlKenneth R Westerback
2021-06-11Oops. Restore error message when no free space found.Kenneth R Westerback
2021-06-11Add local function lba_free() to find the bounds of the largestKenneth R Westerback
2021-06-10Nuke extraneous blank line.Kenneth R Westerback
2021-05-19No need to pass the location of the partition table toKenneth R Westerback
2021-05-15Nuke some Capt. Obvious and soon to be obsolete comments inKenneth R Westerback
2021-05-15Shuffle GPT_read() code into a nice switch{}, eliminatingKenneth R Westerback
2021-05-10Replace some magic numbers with #define's. Rename GPT_get_gpt() toKenneth R Westerback
2021-05-07Replace random mix of u_int* and uint* types with consistent uint* types.Kenneth R Westerback
2021-01-30Make editing GPT easier/safer by defaulting offet to beginning of largestKenneth R Westerback
2016-03-28Remove unused variablesRicardo Mestre
2016-01-09Revamp the display of GPT information, hiding less importantKenneth R Westerback
2015-12-11Add '-v' flag that forces the display of both GPT's and the MBR.Kenneth R Westerback
2015-11-26When prompting for a GPT partition type, use the partition's current type asTim van der Molen
2015-11-19Reduce overburden of unnecessary #include's. Note that param.h isKenneth R Westerback