summaryrefslogtreecommitdiff
path: root/sbin/fdisk/mbr.h
AgeCommit message (Collapse)Author
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
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
2002-01-04Remove references to the NT serial number. Now the first 0x1beKjell Wooding
bytes of the MBR are treated as code for the purposes of the (u)pdate command. This is consistent with the new -u flag. This means boot managers like BootEasy can now be written out correctly. Note that rewriting the MBR now whacks the NT serial number - a behavior that is consistent with the DOS FDISK /MBR.
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-08-12#(endif|else) foo is incorrect, make it #endif /* foo */Heikki Korpela
deraadt@ ok
2001-01-28Quick -Wall fixes, ok niklas@, aaron@Tobias Weingartner
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-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-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.