summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
AgeCommit message (Expand)Author
2024-03-01Allow fdisk(8) to add GPT partitions of protected types.Kenneth R Westerback
2023-11-18Scan past whitespace before checking if flag string startsKenneth R Westerback
2023-11-10GPT partitions have many attributes. Don't stomp on them all whenKenneth R Westerback
2023-11-10Enhance 'flag' to accept hex values in addition to the current 0Kenneth R Westerback
2023-04-10Make GPT display of menu hex octet the same as the MBR display.Kenneth R Westerback
2023-04-09Refactor and simplify GPT menu selection logic.Kenneth 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-29Change 'type' to 'menuid' in various struct's, functions andKenneth R Westerback
2023-03-29Simplify code by having PRT_uuid_to_type() return -1 whenKenneth R Westerback
2023-03-26Pass lbuf/lbuflen to PRT_print_[mbr|gpt]_menu() to allow changesKenneth R Westerback
2023-03-25Make *_name fields char * instead of char[]. Specify desiredKenneth R Westerback
2023-03-25Rename *_sname fields/functions to *_name to remove impliedKenneth R Westerback
2023-03-04Use nitems() in the simple iterations over mbr->mbr_prt[].Kenneth R Westerback
2023-03-04Toss in some const's to ensure that static data pointed toKenneth R Westerback
2022-09-11Add #define's for GPT partition attribute bits REQUIRED, IGNOREKenneth R Westerback
2022-07-25Only MBR and GPT structures can be edited by fdisk.Kenneth R Westerback
2022-07-10Add some anti-feline input protection by refusing to processKenneth R Westerback
2022-07-10Use nice #define's for input buf size and output help buf size.Kenneth R Westerback
2022-05-09Replace a stray 0xA6 with DOSPTYP_OPENBSD. Tweak a ">= 2" to moreKenneth 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-24Use warnx() if errno is not relevant. close() after errno ofKenneth 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-18Convert the GPT header read from disk into a host-endian version,Kenneth 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-02-04%llu should be enough for anybody, no need to use %lld/(long long) forKenneth R Westerback
2022-02-04Remove CHS information from internal representation of MBR partitions. GenerateKenneth R Westerback
2022-01-27Nuke single use function PRT_fix_BN() and just use the ATA/ATAPI LBA -> CHSKenneth R Westerback
2022-01-22Wrap some long lines.Kenneth R Westerback
2022-01-21Split PRT_print() into PRT_print_parthdr() and PRT_print_part()Kenneth R Westerback
2021-10-21Remove 'disk' editing command. Determining the disk geometry on startup (fromKenneth R Westerback
2021-09-10Stop using NULL as a synonym for "s" (SECTORS). Just use "s".Kenneth R Westerback
2021-09-09Simplify logic in USER_edit() loop to eliminate unnecessaryKenneth R Westerback
2021-09-02Split part_type into separate types 'mbr_type' and 'gpt_type',Kenneth R Westerback
2021-09-01Improve editing GPT partition type GUID's by rejecting partitionKenneth R Westerback
2021-08-29Nuke unused variable and unnecessary initialization.Kenneth R Westerback
2021-08-28Add hex_octet() so the strtol(..,16) dance is done in just oneKenneth R Westerback
2021-08-24Trim leading/trailing whitespace from -e input to make commandKenneth R Westerback
2021-08-15Don't check & errx() after each and every invocation ofKenneth R Westerback
2021-08-12Further reduce cross-file confusion by adding USER_help() andKenneth R Westerback
2021-08-07Nuke a few Capt. Obvious comments.Kenneth R Westerback
2021-08-06Cleanup, clarify and generally polish the MBR/GPT initializationKenneth R Westerback
2021-07-21A couple of missed 'const'.Kenneth R Westerback
2021-07-21Use a dedicated struct mbr to hold the GPT protective MBR,Kenneth R Westerback
2021-07-19An MBR knows (mbr_lba_self) where it is supposed to go, noKenneth R Westerback
2021-07-17The first think MBR_init() does is memset(0) the gpt header and gptKenneth R Westerback
2021-07-17Nuke a bunch of Capt. Obvious or misleading comments.Kenneth R Westerback