summaryrefslogtreecommitdiff
path: root/sbin/fdisk/part.c
AgeCommit message (Expand)Author
2023-06-19"%-Ns\n" is more appropriately "%s\n" to avoid adding extraneousKenneth R Westerback
2023-05-21If an MBR partition start or end can be represented by CHS, setKenneth R Westerback
2023-05-17Make function and symmetry obvious by renaming PRT_make() toKenneth R Westerback
2023-05-10Display correct type name for Microsoft basic data GPTKenneth R Westerback
2023-04-12Simplify code by folding uuid_attr() into PRT_protected_uuid().Kenneth R Westerback
2023-04-12Clarify logic in PRT_uuid_to_menudflt() by using find_gpt_menuitem().Kenneth R Westerback
2023-04-11Abstract find_[gpt|mbr]_menuitem() to simplify code andKenneth R Westerback
2023-04-11Simplify code by passing pointers to the appropriate type toKenneth R Westerback
2023-04-11Shuffle mbr and gpt function prototypes and declarations together.Kenneth 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-08A bit more guid vs uuid naming consistency.Kenneth R Westerback
2023-04-07Add helper functions find_mbr_desc() and find_gpt_desc() to allowKenneth R Westerback
2023-04-05Add (inside #if 0 blocks) #define's and gpt_types[] entries forKenneth R Westerback
2023-04-04Adopt a more compact idiom when initializing gpt_types[]. GroupKenneth R Westerback
2023-04-02Use #define instead of `char * const' for the repeated GUID strings. Ugly,Miod Vallat
2023-04-01Use char * const for the rest of the repeated GUID strings. MoreKenneth R Westerback
2023-03-31Refactor partition type menu code, disentangling mbr and gptKenneth R Westerback
2023-03-31Oops. Missed eliminating unneeded double quotes in previous.Kenneth R Westerback
2023-03-31Be more consistent in function naming. Functions taking orKenneth R Westerback
2023-03-30Use 'char * const' instead of #define for repeatedKenneth R Westerback
2023-03-30Remove needless memset() call, 'entries' variable andKenneth R Westerback
2023-03-29Change 'type' to 'menuid' in various struct's, functions andKenneth R Westerback
2023-03-29No need to assume a nil GUID can be found at gpt_types[0]. JustKenneth 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-26Add EFI_SYSTEM_PARTITION_GUID #define and use it to check forKenneth R Westerback
2023-03-26Add MICROSOFT_BASIC_DATA_GUID #define to make clear what menuKenneth R Westerback
2023-03-25Add comments documenting possible sources for MBR partition typesKenneth R Westerback
2023-03-25Rename ascii_id() find_mbr_type(), make it a bit more like itsKenneth 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-06Use GPT_UUID_NBSD_UFS, not GPT_UUID_FBSD_DATA, for NetBSD GPTKenneth R Westerback
2022-08-29Print warning when an MBR partition starts or extends past theKenneth R Westerback
2022-05-08Rename gt_protected field of struct gpt_type to gt_attr andKenneth R Westerback
2022-05-08Shuffle local helper function declarations and definitions intoKenneth R Westerback
2022-05-07Now that the internal versions of GPT partitions are host-endian,Kenneth R Westerback
2022-05-06Rename PRT_uuid_to_[protection|typename] to PRT_uuid_to_[protected|sname],Kenneth R Westerback
2022-05-06When printing the GPT table, display "Microsoft basic data" instead ofKenneth R Westerback
2022-05-03Rework display of partition types, removing unnecessary trailingKenneth R Westerback
2022-04-28Convert the internal GPT partition entries into host-endian formKenneth 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-03-14Abstract duplicated code scanning gpt_types[] into a helperKenneth R Westerback
2022-03-14PRT_uuid_to_typename() can return const char *.Kenneth R Westerback
2022-03-14Nuke extraneous blank line.Kenneth 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