summaryrefslogtreecommitdiff
path: root/sbin/fdisk/disk.c
AgeCommit message (Expand)Author
2016-03-09Accept only character special devices rather than generating a coreKenneth R Westerback
2015-12-12Open disk READONLY if none of i, e or u are specified.Kenneth R Westerback
2015-12-01Fix inexplicable use of 'disk' instead of 'disk.name' when trying toKenneth R Westerback
2015-11-19Reduce overburden of unnecessary #include's. Note that param.h isKenneth R Westerback
2015-11-14Since -l is ignored if -c/-h/-s are specified, make that combinationKenneth R Westerback
2015-11-13Move from opening/closing disk for every i/o to opening the disk onceKenneth R Westerback
2015-11-11Display full disk size when editing GPT, not the truncated MBR size. DisplayKenneth R Westerback
2015-08-27Nuke some trailing whitespace that keeps coming back.Kenneth R Westerback
2015-03-30Even better -- readsector() and writesector() become DISK_readsector() andKenneth R Westerback
2015-03-27Wrap some annoying long lines.Kenneth R Westerback
2015-03-16Stop passing around a pointer to the stack variable 'disk' in main().Kenneth R Westerback
2015-03-14Whitespace & KNF tweaks. Change functions whose return values areKenneth R Westerback
2015-03-14Switch all the license blocks to the standard OpenBSD/ISC license.Kenneth R Westerback
2014-03-31Whitespace rectification.Kenneth R Westerback
2014-03-20Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h toKenneth R Westerback
2014-03-17Nuke pointless blank lines, defines, comments and casts. EliminateKenneth R Westerback
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-13Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tKenneth R Westerback
2014-03-09Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundKenneth R Westerback
2014-03-07Relieve the code of an overburden of unnecessary typedefKenneth R Westerback
2013-03-21more substantial include cleanupTheo de Raadt
2012-07-11MBR can't handle the truth.Kenneth R Westerback
2011-07-05Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the lastKenneth R Westerback
2010-06-30Make 'fdisk -i' start the OpenBSD partition on a power of 2 512-byteKenneth R Westerback
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
2009-02-08Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. EspeciallyKenneth R Westerback
2007-04-27Remove unneeded #include's, as already done for disklabel. CPU_BIOSKenneth R Westerback
2007-04-26Eliminate CPU_BIOS from userland and wd(4) by always using the BIOSKenneth R Westerback
2006-12-10Read/write device sectors rather than assuming sector size ==Kenneth R Westerback
2006-11-19Try DIOCGPDINFO before DIOCGDINFO when trying to determine the 'label'Kenneth R Westerback
2005-12-18Fix condition so "BIOS fixup botch" can, unlikely as it is, beKenneth R Westerback
2005-11-21Replace default DEV_BSIZE sector conversion factor with disklabel'sKenneth R Westerback
2004-08-03spacingTheo de Raadt
2004-07-11Just use err(1, NULL) following malloc() failures, per err(3).Tom Cosgrove
2003-07-29spacesTheo de Raadt
2003-07-02missing protosTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2002-07-11malloc() failure tests; rimshot@pandora.beTheo de Raadt
2002-04-25sysctl wants size_t.Marc Espie
2002-01-18Allow size values to be displayed in the user's choice of units.Kjell Wooding
2001-06-23Changes from Toby. Make error tests explicit (against -1), remove one bigKjell Wooding
2001-05-21More verbose error message (what's the actual sysctl that failed)Angelos D. Keromytis
2000-04-18Favor BIOS geometry over physical. This should fix MANY problems withKjell Wooding
2000-01-08support LBA-mapped extended partitions too; sigh@kuzirabekon.econ.nagasaki-u....Theo de Raadt
1997-10-28use RAW_PART, not 0Theo de Raadt
1997-10-26do device sysctl operations like installboot does; I hope this is rightTheo de Raadt
1997-10-22newer bios stuff; needs workMichael Shalayeff
1997-10-19indentTheo de Raadt