summaryrefslogtreecommitdiff
path: root/sbin/fdisk/disk.c
AgeCommit message (Collapse)Author
2005-12-18Fix condition so "BIOS fixup botch" can, unlikely as it is, beKenneth R Westerback
detected. Found by lint. ok millert@
2005-11-21Replace default DEV_BSIZE sector conversion factor with disklabel'sKenneth R Westerback
sector size when possible. Fixes the "[ XX Sectors ]" size display. Pointed out by Robert Szasz while playing with his Sony Hi-MD device. Apply input conversion fixes similar to those recently applied to disklabel(8). Use correct sector size in the conversions. It is still *not* possible to use unusual sector sizes for non-ISO9660 filesystems! ok millert@
2004-08-03spacingTheo de Raadt
2004-07-11Just use err(1, NULL) following malloc() failures, per err(3).Tom Cosgrove
ok otto@
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
Idea borrowed from disklabel. i.e. Users can now type "print M" and be rewarded with partition sizes in Megs
2001-06-23Changes from Toby. Make error tests explicit (against -1), remove one bigKjell Wooding
hurdle to partitions over 8G. Include the default MBR in a header file.
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
hard drives >8G sharing partitions with other operating systems. Also, support extended partition type 0x0F, which is quite common now.
2000-01-08support LBA-mapped extended partitions too; ↵Theo de Raadt
sigh@kuzirabekon.econ.nagasaki-u.ac.jp
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
1997-10-19indentTheo de Raadt
1997-10-16a bunch of improvements by weingart & ITheo de Raadt
1997-10-04support CPU_BIOSDEV on i386Theo de Raadt
1997-09-29ID in the first line w/ tabsMichael Shalayeff
1997-09-29New fdisk code with interactive (command line type)Tobias Weingartner
editing code. Rewrite from the ground up, save about 20 lines of code. Seems to create valid partition tables on i386 and alphas.