summaryrefslogtreecommitdiff
path: root/sbin/fdisk/part.c
AgeCommit message (Collapse)Author
2001-11-14fix a typo, from Daniel Lucq <daniel@lucq.org>, tested on:Michael Shalayeff
> (0) a SCSI disk with a working OpenBSD install > (1) a SCSI disk with cleared first sector (dd if=/dev/zero) > (2) an IDE disk with a working OpenBSD install > (3) an IDE disk with cleared first sector
2001-11-07Add MacOS X for Intel (or Darwin for Intel, or whatever the correctMiod Vallat
name is) partition ID. ok millert@ mickey@
2001-07-02#include <string.h> to get mem* prototypes.Todd C. Miller
2001-06-23Add more partition types - ref. NetBSDKjell Wooding
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-18oopsMichael Shalayeff
2001-05-18a few harmless cleanupsMichael Shalayeff
2001-03-160x9f == BSDI, ok millert@Markus Friedl
2000-07-01be more verbose when warning for partition errors,Michael Shalayeff
print partition number in the message.
2000-06-110x39 == plan9Markus Friedl
2000-06-10know QNX; jcplace@ibm.neTheo de Raadt
2000-03-29sort partition type list vertically rather than across. ok weingart@Kenneth R Westerback
2000-01-08support LBA-mapped extended partitions too; ↵Theo de Raadt
sigh@kuzirabekon.econ.nagasaki-u.ac.jp
1999-11-23Add Phoenix BIOS notebook save-to-disk partition type (ok theo).Ian Darwin
1999-07-22align collumnsTheo de Raadt
1999-02-09BeOS/i386; ura@yamato.ibm.co.jpTheo de Raadt
1998-09-18fix tableTheo de Raadt
1998-09-14Since on the powerpc, the system does not supply the user withDale S. Rahn
bios valid cyl,head,sector information (the information comes from the sd driver) I have made some changes to fdisk to do the following. Allow the powerpc to specify values larger than the bios limits. All platforms now have code that will translate the LBA values in the mbr into CHS values according to the disk geometry. This occurs if the start and ending CHS values have been stored as 0xffffff. If writing to the disk and one of the values of a partition violates the bios limits, it writes the requested values in the LBA fields , and stores 0xffffff for the starting and ending CHS values. This should not change the default formatting of any existing system other than the CHS and LBA values should always match given the detected geometry of the disk.
1998-02-19new netbsd partition typeTheo de Raadt
1997-10-21make fdisk grok extended partitions again. we have to keep track of theNiels Provos
absolute offset of the current mbr and its relative position. because: the starting sector of the first mbr entry in an extended partition is relative to the starting offset of the whole mbr itself. the starting offset of a new extended partition is relative to the offset of the very first extended partition.
1997-10-19indentTheo de Raadt
1997-10-16better messageTheo de Raadt
1997-10-16a bunch of improvements by weingart & ITheo de Raadt
1997-10-02shorten two common namesTheo 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.