summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Expand)Author
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
2010-03-22introduce HAS_MBR and let make define it for the right machines;Otto Moerbeek
2010-02-17loongson has mbr as well; ok miod@ (but he made me promise to makeOtto Moerbeek
2009-12-24spelling fixes, from Brad Tilley; we will not fix src/sbin/dump/dump.hIgor Sobrado
2009-07-24properly sanitize the default value in ask_num(...)Alexander Hall
2009-04-29code that stank and made me upsetTheo de Raadt
2009-04-07Fix the default value to be between low/high range. Thanks forTobias Weingartner
2009-04-01Remove duplicate entry for partition id 0x07 so NTFS partitionsJonathan Gray
2009-03-30some improvements inspired by a mail on misc@ from frantisek holop:Jason McIntyre
2009-03-24two more MBR partition namesTodd T. Fries
2009-02-08Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. EspeciallyKenneth R Westerback
2008-12-01Back out previous; it broke specifying paritions sizes with decimals,Ray Lai
2008-12-01Check for invalid integers passed getuint(); instead of getuint()Ray Lai