summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk/disk.c
AgeCommit message (Expand)AuthorFilesLines
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandguenther1-3/+3
2016-03-09Accept only character special devices rather than generating a corekrw1-4/+3
2015-12-12Open disk READONLY if none of i, e or u are specified.krw1-3/+4
2015-12-01Fix inexplicable use of 'disk' instead of 'disk.name' when trying tokrw1-2/+2
2015-11-19Reduce overburden of unnecessary #include's. Note that param.h iskrw1-3/+4
2015-11-14Since -l is ignored if -c/-h/-s are specified, make that combinationkrw1-12/+20
2015-11-13Move from opening/closing disk for every i/o to opening the disk oncekrw1-42/+30
2015-11-11Display full disk size when editing GPT, not the truncated MBR size. Displaykrw1-3/+1
2015-08-27Nuke some trailing whitespace that keeps coming back.krw1-2/+2
2015-03-30Even better -- readsector() and writesector() become DISK_readsector() andkrw1-1/+66
2015-03-27Wrap some annoying long lines.krw1-2/+3
2015-03-16Stop passing around a pointer to the stack variable 'disk' in main().krw1-16/+17
2015-03-14Whitespace & KNF tweaks. Change functions whose return values arekrw1-2/+3
2015-03-14Switch all the license blocks to the standard OpenBSD/ISC license.krw1-21/+12
2014-03-31Whitespace rectification.krw1-2/+1
2014-03-20Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h tokrw1-1/+3
2014-03-17Nuke pointless blank lines, defines, comments and casts. Eliminatekrw1-2/+2
2014-03-17Un-revert, being careful to not break snap building. Add paranoia checkkrw1-66/+17
2014-03-14Revert last -- broke building snaps.krw1-17/+66
2014-03-13Merge 'struct DISK_metrics' and 'struct disk' into one, since we don'tkrw1-66/+17
2014-03-09Instead of passing around 'char buf[DEV_BSIZE]' buffers, pass aroundkrw1-4/+3
2014-03-07Relieve the code of an overburden of unnecessary typedefkrw1-7/+7
2013-03-21more substantial include cleanupderaadt1-8/+7
2012-07-11MBR can't handle the truth.krw1-2/+13
2011-07-05Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the lastkrw1-4/+3
2010-06-30Make 'fdisk -i' start the OpenBSD partition on a power of 2 512-bytekrw1-2/+3
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisdlg1-1/+2
2009-02-08Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. Especiallykrw1-9/+2
2007-04-27Remove unneeded #include's, as already done for disklabel. CPU_BIOSkrw1-4/+1
2007-04-26Eliminate CPU_BIOS from userland and wd(4) by always using the BIOSkrw1-89/+1
2006-12-10Read/write device sectors rather than assuming sector size ==krw1-9/+13
2006-11-19Try DIOCGPDINFO before DIOCGDINFO when trying to determine the 'label'krw1-2/+3
2005-12-18Fix condition so "BIOS fixup botch" can, unlikely as it is, bekrw1-4/+4
2005-11-21Replace default DEV_BSIZE sector conversion factor with disklabel'skrw1-2/+4
2004-08-03spacingderaadt1-2/+2
2004-07-11Just use err(1, NULL) following malloc() failures, per err(3).tom1-3/+3
2003-07-29spacesderaadt1-2/+2
2003-07-02missing protosderaadt1-1/+4
2003-06-11ansificationderaadt1-19/+10
2003-06-03Nuke terms 3 & 4.weingart1-6/+1
2002-07-11malloc() failure tests; rimshot@pandora.bederaadt1-1/+5
2002-04-25sysctl wants size_t.espie1-2/+3
2002-01-18Allow size values to be displayed in the user's choice of units.kjell1-6/+16
2001-06-23Changes from Toby. Make error tests explicit (against -1), remove one bigkjell1-17/+28
2001-05-21More verbose error message (what's the actual sysctl that failed)angelos1-2/+2
2000-04-18Favor BIOS geometry over physical. This should fix MANY problems withkjell1-13/+8
2000-01-08support LBA-mapped extended partitions too; sigh@kuzirabekon.econ.nagasaki-u.ac.jpderaadt1-2/+2
1997-10-28use RAW_PART, not 0deraadt1-2/+2
1997-10-26do device sysctl operations like installboot does; I hope this is rightderaadt1-12/+20
1997-10-22newer bios stuff; needs workmickey1-15/+14