summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Expand)Author
2014-03-17Un-revert, being careful to not break snap building. Add paranoia checkKenneth R Westerback
2014-03-14Revert last -- broke building snaps.Kenneth R Westerback
2014-03-13Remove some lint -- ARGSUSED.Kenneth R Westerback
2014-03-13Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tKenneth R Westerback
2014-03-10No need to pass the name of the command to the function that isKenneth R Westerback
2014-03-09Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundKenneth R Westerback
2014-03-08It's silly to check at compile time for DEV_BSIZE == 512.Kenneth R Westerback
2014-03-07Relieve the code of an overburden of unnecessary typedefKenneth R Westerback
2014-03-06tweak previous;Jason McIntyre
2014-03-02-l disksize code, to force LBA mode. code by chris, after I suggestedTheo de Raadt
2014-02-05Always set the signature to DOSMBR_SIGNATURE when writing a MBR toKenneth R Westerback
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
2013-10-31List all generated files in CLEANFILES.Ingo Schwarze
2013-10-08Keep disk sector calcuations in u_int64_t as long as possible, andKenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2013-03-21more substantial include cleanupTheo de Raadt
2013-03-21I don't feel great about adding an include for <sys/param.h>, but I feelTheo de Raadt
2012-08-14remove unused variableCharles Longeau
2012-07-25do not check ns here, we're supposed to compute it; ok krw@ deraadt@Otto Moerbeek
2012-07-11MBR can't handle the truth.Kenneth R Westerback
2012-07-11Simplify guts and calling of getuint(). Eliminate a useless 'help'Kenneth R Westerback
2012-07-09We always want to do unit conversions. So flags parameter of getuint()Kenneth R Westerback
2012-07-09I want some of what kjell was smoking 10 years ago when he addedKenneth R Westerback
2012-07-09Make 'swap' command work like fdisk(8) says -- you must supply two validKenneth R Westerback
2012-07-09Use strtonum() instead of strtol() inside ask_num(). Many overflowsKenneth R Westerback
2012-07-08set_pid() does not need prompt string, low or high parameters. TheseKenneth R Westerback
2012-07-08Split out an ask_pid() function rather than over-parameterizing theKenneth R Westerback
2012-07-08Call Xsetpid() to edit the partition type from Xedit() rather thanKenneth R Westerback
2012-07-08Nuke useless EDIT() #define in Xsetpid.Kenneth R Westerback
2012-07-08Replace tricker atoi() and hand rolled parsing with strsep() andKenneth R Westerback
2012-07-07Replace atoi() with strtonum() where it's easy. Make related errorKenneth R Westerback
2012-04-25Before writing it to disk, warn the user if their new MBR containsMatthew Dempsky
2012-04-04Don't 'reserve' a head/track if there is only only 1 head and 1Kenneth R Westerback
2011-12-25printf("msg")/return 1 -> err(1, "msg"), which will also show relevantKenneth R Westerback
2011-11-11A zero-length partition is a non-partition, so reject a partitionKenneth R Westerback
2011-07-05Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the lastKenneth R Westerback
2011-06-23switch to installing source manuals (base part)Ingo Schwarze
2011-06-20MBR_read() can be reading from a file as well as a raw partition.Kenneth R Westerback
2011-02-21Honour MBR_read() results and don't pretend we can parse blocks weKenneth R Westerback
2010-12-03disklabel now uses "duid", not "uid";Jason McIntyre
2010-11-22Update example disk partition info to more current reality. NoticedKenneth R Westerback
2010-07-05improve description for -i; as a consequence of recent changes,Igor Sobrado
2010-07-04make ^D handling consistant in fdisk by just bailing out instead ofAlexander Hall
2010-07-02on error, getuint() will return UINT_MAX. Instead of actually usingAlexander Hall
2010-06-30Make 'fdisk -i' start the OpenBSD partition on a power of 2 512-byteKenneth R Westerback
2010-05-25match usage to the manual page, and borrow the description of 'disk'Theo de Raadt
2010-05-20document the optional arg to "flag", as requested by Thomas Pfaff;Jason McIntyre
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
2010-03-27remainer->remainder; from miodJason McIntyre
2010-03-27various improvements from Anders Langworthy, with some tweaksJason McIntyre