summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Expand)Author
2024-09-29add some commas, to aid readability;Jason McIntyre
2024-05-21remove prototypes with no matching function and externs with no varJonathan Gray
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-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-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-05-10Microsoft GPT partition attributes can appear on partitions otherKenneth R Westerback
2023-05-07GPT partitions with the 'Required' attribute are not deleted by -A.Kenneth 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-07Oops. Missed files in last commit.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-25Move LINEBUFSZ to be with its friends in misc.h.Kenneth 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
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-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-15Short names make for shorter and prettier lines.Kenneth R Westerback
2022-09-15Add GPTPARTATTR_MS_* defines for Microsoft basic data attributesKenneth R Westerback