summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk/cmd.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Make editing GPT easier/safer by defaulting offet to beginning of largestkrw2021-01-301-9/+6
* Constrain MBR partition offsets to 0 .. disk.size - 1.krw2017-11-131-2/+2
* 'reinit' should check the MBR on disk, as the man page says.krw2016-09-031-2/+2
* capitalize a question like all the othersjcs2016-08-021-2/+2
* Dump strdup()/free() dance and just use a local buffer to translate helpkrw2016-03-301-9/+7
* The GPT versions of help strings that don't contain'MBR' werekrw2016-03-281-9/+7
* Revamp the display of GPT information, hiding less importantkrw2016-01-091-5/+5
* When prompting for a GPT partition type, use the partition's current type astim2015-11-261-2/+3
* Try harder to prevent 0-length partitions from being defined.krw2015-11-251-9/+10
* Bring GPT partition editing into line with MBR partition editingkrw2015-11-211-8/+7
* Nuke long standing annoyance of EDIT() macros and switch both Xedit()krw2015-11-211-53/+60
* When an existing partition is modified in LBA mode, ensure that the partitiontim2015-11-191-7/+12
* Reduce overburden of unnecessary #include's. Note that param.h iskrw2015-11-191-7/+5
* Change #include <memory.h> to #include <string.h>krw2015-11-181-2/+2
* Move from opening/closing disk for every i/o to opening the disk oncekrw2015-11-131-14/+5
* Don't allow the user to enter GPT partition names too large to fitkrw2015-11-031-1/+7
* Add GPT editing. Based on GSOC 2014 work by Markus Muller.krw2015-10-261-31/+199
* Don't printf("offset: ...) before every call to MBR_print(). Do itkrw2015-04-021-3/+1
* Adapt ask_string() from disklabel's getstring(). It will be usedkrw2015-03-261-3/+3
* Expand internal representation of partition starting LBA and sizekrw2015-03-261-8/+8
* When zapping the GPT at the end of the disk, don't use disk.sizekrw2015-03-191-2/+2
* Stop passing around little used 'struct mbr tt' parameter. Justkrw2015-03-181-21/+20
* Stop passing around little used and superfluous 'offset' parameter.krw2015-03-171-21/+21
* Stop passing around a pointer to the stack variable 'disk' in main().krw2015-03-161-58/+43
* Whitespace & KNF tweaks. Change functions whose return values arekrw2015-03-141-14/+11
* Switch all the license blocks to the standard OpenBSD/ISC license.krw2015-03-141-20/+11
* If 'write' is issued after a 'reinit' command, and the MBR to bekrw2015-02-101-2/+10
* Rename 'm_flag' to 'e_flag' since it's '-e' that sets it. Renamekrw2015-02-091-2/+2
* Use return value constants to make effects clearer than the usekrw2014-03-311-18/+12
* Whitespace rectification.krw2014-03-311-4/+1
* Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h tokrw2014-03-201-1/+4
* Nuke pointless blank lines, defines, comments and casts. Eliminatekrw2014-03-171-10/+12
* Un-revert, being careful to not break snap building. Add paranoia checkkrw2014-03-171-17/+16
* Revert last -- broke building snaps.krw2014-03-141-16/+17
* Remove some lint -- ARGSUSED.krw2014-03-131-15/+1
* Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tkrw2014-03-131-17/+16
* No need to pass the name of the command to the function that iskrw2014-03-101-31/+29
* Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundkrw2014-03-091-16/+10
* Relieve the code of an overburden of unnecessary typedefkrw2014-03-071-25/+35
* more substantial include cleanupderaadt2013-03-211-3/+4
* I don't feel great about adding an include for <sys/param.h>, but I feelderaadt2013-03-211-2/+1
* Simplify guts and calling of getuint(). Eliminate a useless 'help'krw2012-07-111-27/+5
* We always want to do unit conversions. So flags parameter of getuint()krw2012-07-091-3/+3
* I want some of what kjell was smoking 10 years ago when he addedkrw2012-07-091-6/+3
* Make 'swap' command work like fdisk(8) says -- you must supply two validkrw2012-07-091-5/+17
* Use strtonum() instead of strtol() inside ask_num(). Many overflowskrw2012-07-091-6/+2
* set_pid() does not need prompt string, low or high parameters. Thesekrw2012-07-081-2/+2
* Split out an ask_pid() function rather than over-parameterizing thekrw2012-07-081-12/+10
* Call Xsetpid() to edit the partition type from Xedit() rather thankrw2012-07-081-20/+14
* Nuke useless EDIT() #define in Xsetpid.krw2012-07-081-9/+8