summaryrefslogtreecommitdiff
path: root/sbin/fdisk/fdisk.c
AgeCommit message (Collapse)Author
2003-07-02missing protosTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2001-12-15Get this damn diff out of my tree. ok from weingart@, deraadt@ and others.Kjell Wooding
Add a -u flag to fdisk which updates MBR code, but leaves the partition table intact. There are still issues with 'update' having different behavior, but I'll resolve those shortly
2001-07-02#include <string.h> to get mem* prototypes.Todd C. Miller
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.
2000-01-08support LBA-mapped extended partitions too; ↵Theo de Raadt
sigh@kuzirabekon.econ.nagasaki-u.ac.jp
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.
1997-10-28if printing, we do not need to read the mbr firstTheo 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-19indentTheo de Raadt
1997-10-16a bunch of improvements by weingart & ITheo de Raadt
1997-10-14Be a little more informative.Per Fogelstrom
1997-09-29ID in the first line w/ tabsMichael Shalayeff
1997-09-29better usage()Michael 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.
1997-09-29Clean up junk before commit of new fdiskTobias Weingartner
1997-07-06Explicit typingNiklas Hallqvist
1997-04-17fix start address for first extended filesystemNiels Provos
1997-04-15indentTheo de Raadt
1997-04-14works a bit better with extended partitions. hack.Niels Provos
1997-04-11add more partition types. add (non-functional) Extended partition supportTheo de Raadt
which can be finished by someone who has Extended partitions (HINT: I would really like to see this working for 2.1)
1997-04-06Add partition type 0x12.Jason Downs
1997-04-02fix bios geometry calculationMichael Shalayeff
1997-01-31avoid some division by zero in hackish waysTheo de Raadt
1997-01-27Support fdisk on bigendian systems. Does the necessary byte swabbing toDale S. Rahn
read and write the fdisk label. Added powerpc to systems to build this for. Currently uses local functions getshort, putshort, getlong, and putlong. These functions probably should be moved and renamed. Something like htoles, letohs, htolel, letohl, or htole16, htole32 should be used instead.
1997-01-10one-line fix so fdisk knows that partitions marked 0x0B are Win95/FAT32jkatz
1996-09-30signature is 16 bitsTheo de Raadt
1996-09-27even betterTheo de Raadt
1996-09-27installing people do not have man pages; better usageTheo de Raadt
1996-09-27make -m also act like -i/-uTheo de Raadt
1996-09-27nicer errorsTheo de Raadt
1996-09-25permit loading of a special MBR bootblock -- do not encode a fake MBRTheo de Raadt
bootblock inside the program. cleanup printed output. do not assume 'd' partition. Solves a whole bunch of other interaction problems with disklabel. Has been tested a fair bit, but will endure more testing (at the hands of the users! Hahahaha!)
1996-06-17Switched to generic opendev(3)Jason Downs
1996-06-03openbsd, not netbsdTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt