summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
AgeCommit message (Expand)Author
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
2021-07-17Change edit/gedit/setpid/gsetpid to return 0/-1 to indicate success or failureKenneth R Westerback
2021-07-16Change PRT_protected_guid() to take native order uuid's instead of little endianKenneth 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-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-11Add 'prt_' prefix to struct prt field names.Kenneth R Westerback
2021-07-11Add 'mbr_' prefix to struct mbr 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-21Add -A option to "safely" initialize a GPT without removingKenneth R Westerback
2021-06-16Ensure that the '-i' command line option and the 'reinit [mbr]'Kenneth R Westerback
2021-06-14Only use of 'reinited' died in cmd.c r1.100. It is now set in aKenneth R Westerback
2021-06-13Have gedit() and gsetpid() both return CMD_CLEAN if no data hasKenneth R Westerback
2021-06-13Tweak gsetpid() to restore partition info in case of an error,Kenneth R Westerback
2021-06-11Add local functions edit() and setpid().Kenneth R Westerback
2021-06-11Take a bit more obvious care in gedit() to restore originalKenneth R Westerback
2021-06-11No need to parse partition number more than necessary. Just passKenneth R Westerback
2021-06-10Another hand rolled partition number parsing bites the dust.Kenneth R Westerback
2021-06-10Missed an occurance of hand rolled partition number parsing.Kenneth R Westerback
2021-06-10Abstract repeated parsing of partition numbers into parsepn() toKenneth R Westerback
2021-06-10Local functions don't need to be in .h files, nor do they need theKenneth R Westerback
2021-06-10Rename vars 'oldpart' to 'oldgg' when storing 'gg' value, andKenneth R Westerback
2021-05-15Add missing MBR_protective_mbr() check when writing edited GPT.Kenneth R Westerback
2021-05-14Tweak the two copies of gpt_chk_mbr() to return the index of the MBRKenneth 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-05-02Try harder to ensure there are no GPT revenants afterKenneth R Westerback
2021-01-30Make editing GPT easier/safer by defaulting offet to beginning of largestKenneth R Westerback
2017-11-13Constrain MBR partition offsets to 0 .. disk.size - 1.Kenneth R Westerback
2016-09-03'reinit' should check the MBR on disk, as the man page says.Kenneth R Westerback
2016-08-02capitalize a question like all the othersJoshua Stein
2016-03-30Dump strdup()/free() dance and just use a local buffer to translate helpKenneth R Westerback
2016-03-28The GPT versions of help strings that don't contain'MBR' wereKenneth R Westerback
2016-01-09Revamp the display of GPT information, hiding less importantKenneth R Westerback
2015-11-26When prompting for a GPT partition type, use the partition's current type asTim van der Molen
2015-11-25Try harder to prevent 0-length partitions from being defined.Kenneth R Westerback
2015-11-21Bring GPT partition editing into line with MBR partition editingKenneth R Westerback
2015-11-21Nuke long standing annoyance of EDIT() macros and switch both Xedit()Kenneth R Westerback
2015-11-19When an existing partition is modified in LBA mode, ensure that the partitionTim van der Molen