summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
AgeCommit message (Collapse)Author
2001-01-28More -Wall cleanup. Ansi style nit.Tobias Weingartner
2001-01-01New command "setpid", just changes the ID of a partition (no otherAngelos D. Keromytis
parameters editing) -- vassilip@dsl.cis.upenn.edu
2000-07-01be more verbose when warning for partition errors,Michael Shalayeff
print partition number in the message.
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-02-04Max Sectors is 63. ok weingart@Kjell Wooding
2000-01-08support LBA-mapped extended partitions too; ↵Theo de Raadt
sigh@kuzirabekon.econ.nagasaki-u.ac.jp
1999-08-21MIPS boxes that use fdisk need an MS-DOS partitionNiklas Hallqvist
1999-06-10Handle PAGER in a manner consistent with the Single Unix Specification:Paul Janzen
that is, use PAGER rather than "more" if it is defined and non-null, not just if it is defined.
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-09-08For powerpc's we want to keep the preinstalled msdos partition in the initPer Fogelstrom
MBR when doing a 'fdisk -i'. That is because the msdos partition is used for booting. The OpenBSD part (part 3) is set up to be the rest of the disk. Also the msdos partition is set as the 'active' partition.
1998-08-08Include signal.h so that it compiles.Jason Downs
1998-08-07protect against SIGPIPETodd C. Miller
1998-01-04fix maximal cyl/heads; vons@usa.netTheo de Raadt
1997-12-23swap exit and quitTheo 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-19when we reinit, show what we didTheo de Raadt
1997-10-19spellingTheo de Raadt
1997-10-19clarifyTheo de Raadt
1997-10-19indentTheo de Raadt
1997-10-19for p, print disk info tooTheo de Raadt
1997-10-18constrain edit mode to size of BIOS part of disk; sorryTheo de Raadt
1997-10-16new command: manualTheo de Raadt
1997-10-16a bunch of improvements by weingart & ITheo de Raadt
1997-10-04do not ask for confirmation in writeTheo de Raadt
1997-10-02do not whine if user quits without modsTheo de Raadt
1997-09-30don't say 'dirty' if nothing is changed actuallyMichael Shalayeff
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.