summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Expand)Author
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandPhilip Guenther
2017-11-16Range check default values so that a range likeKenneth R Westerback
2017-11-13Constrain MBR partition offsets to 0 .. disk.size - 1.Kenneth R Westerback
2017-03-26cleanup fdisk(8) partition names used by FAT file systems so they are moreIgor Sobrado
2016-12-27The "disk too large" and "only LBA values saved" messages are moreKenneth R Westerback
2016-09-03'reinit' should check the MBR on disk, as the man page says.Kenneth R Westerback
2016-09-03no more boot_zaurus.8;Jason McIntyre
2016-09-01Nuke now unused 'sz' variable.Kenneth R Westerback
2016-09-01EFI firmware has been encountered that is (from our point of view) confusedKenneth R Westerback
2016-08-02capitalize a question like all the othersJoshua Stein
2016-06-25Move pledge after opendev and DIOCGPDINFO. Fixes e.g. fdisk /dev/tty.Theo Buehler
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-03-28Remove unused variablesRicardo Mestre
2016-03-09Accept only character special devices rather than generating a coreKenneth R Westerback
2016-02-23A disk name of /dev/wd0c doesn't work. Correct verbiage and example.Kenneth R Westerback
2016-01-09Revamp the display of GPT information, hiding less importantKenneth R Westerback
2015-12-30Revert r1.59's over-enthusiatic MBR zero'ing in MBR_init(). It wasKenneth R Westerback
2015-12-27Use 'standard' gpt_chk_mbr() to check for protective MBR.Kenneth R Westerback
2015-12-12In olden times (i + u + e) was considered a clever way to 'or'Kenneth R Westerback
2015-12-12Open disk READONLY if none of i, e or u are specified.Kenneth R Westerback
2015-12-11there are no boot_ pages for armish or landisk that i can see,Jason McIntyre
2015-12-11Add '-v' flag that forces the display of both GPT's and the MBR.Kenneth R Westerback
2015-12-01Fix inexplicable use of 'disk' instead of 'disk.name' when trying toKenneth R Westerback
2015-12-01Make '-i' set 'reinited' flag so that the initial Xwrite() will zapKenneth R Westerback
2015-11-26When prompting for a GPT partition type, use the partition's current type asTim van der Molen
2015-11-26When prompting for an LBA, show the min and max values in the prompt; OK krw@Tim van der Molen
2015-11-25Try harder to prevent 0-length partitions from being defined.Kenneth R Westerback
2015-11-24pledge "stdio rpath wpath disklabel proc exec" throughout, afterTheo de Raadt
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
2015-11-19Oops. Missed a file.Kenneth R Westerback
2015-11-19Reduce overburden of unnecessary #include's. Note that param.h isKenneth R Westerback
2015-11-18Change #include <memory.h> to #include <string.h>Kenneth R Westerback
2015-11-18Parse the original on-disk MBR into a local variable. Use theKenneth R Westerback
2015-11-18g_flag does not need to be a global. Move it inside main().Kenneth R Westerback
2015-11-18Rejig the MBR file reading logic soKenneth R Westerback
2015-11-18USER_edit() (a.k.a. -e) edits the on-disk information. So zap GPTKenneth R Westerback
2015-11-18Read MBR immediately, and only read the GPT if the MBR is aKenneth R Westerback
2015-11-17note that -chs and -l are mutually exclusive;Jason McIntyre
2015-11-15Move zapping of invalid GPT data into GPT_get_gpt() rather thanKenneth R Westerback
2015-11-14Since -l is ignored if -c/-h/-s are specified, make that combinationKenneth R Westerback
2015-11-14Consolidate usage() checking for -c/-h/-s with other checks. TweakKenneth R Westerback
2015-11-14pledge("stdio", NULL) for code path that just prints the MBR or GPT. i.e.Kenneth R Westerback
2015-11-14If none of -i, -u or -e are specified exit immediately after theKenneth R Westerback
2015-11-13No need to supplement usage() with extra messages about -b needing -i, orKenneth R Westerback
2015-11-13No need to zero a global variable before use.Kenneth R Westerback
2015-11-13Make usage() output fit on a 'normal' 80-character line. Tweak someKenneth R Westerback
2015-11-13Move from opening/closing disk for every i/o to opening the disk onceKenneth R Westerback