summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk
Commit message (Collapse)AuthorAgeFilesLines
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-281-12/+12
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-5/+5
|
* Prepare for mdoc(7)NG.ru2000-12-181-1/+0
|
* mdoc(7) police: added missing .Os call.ru2000-12-141-1/+1
|
* I didn't maintain the "chs" ordering. Rather the bug was in print_part().obrien2000-11-291-6/+6
| | | | Requested by: bde.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Make the order of values prompted for with the "-i" option match print_part()obrien2000-11-181-2/+2
|
* Use Fx macro wherever possible.ru2000-11-141-8/+8
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-25/+20
|
* - When adjusting the end of a partition to lie on a cylinder boundary, don'tjhb2000-08-241-46/+94
| | | | | | | | | | | adjust the size, but the actual end. - Break out some of the sanity checks on partitions into a sanitize_partition function. - When adjusting partitions, always adjust the start "up", and the end "down" so that we stay within the boundaries of the original request. - Various small nits found by bde. Reported by: bde, imp, rgrimes
* 0xA0 = Suspend to disk.joe2000-08-071-0/+1
|
* Fix a really stupid bug where I assumed sizeof(int) == 2. This resulted injhb2000-07-211-1/+1
| | | | | | | MBR's with a 4th slice failing the signature check and fdisk saying that they are invalid. Submitted by: bde
* - Don't try to free mboot.bootinst before it has been allocated. If, forjhb2000-07-171-2/+2
| | | | | | | | | | some reason, mboot.bootinst is not initialized to NULL at the beginning of the program, then the last commit to this would try to free whatever bogus address is in it. - Restore the behavior of free()'ing the mboot.bootinst buffer after we abuse it to determine the sector size of the disk (as clearly noted in the comments). Properly fix the double free() bug by setting the pointer to NULL after we free it.
* Fix memory leak/double free found by phkmallocache2000-07-151-8/+10
| | | | Uniform mboot.bootinst allocation code to be independent of functions order
* - Always respect cylinder boundaries when creating slices unless the userjhb2000-07-121-17/+70
| | | | | | explicitly sets the geometry. - Allow for MBR boot loaders that are longer than one sector. Only accept boot loaders if their size is a multiple of the sector size, however.
* Catch the usage() function up to the command line changes. Add -I andjhb2000-06-271-1/+1
| | | | remove -e.
* 0x39 == plan9brian2000-06-121-0/+1
| | | | Obtained from: OpenBSD
* Add QNX 4 partitions to fdisk's list.ghelmer2000-06-091-1/+4
| | | | | | PR: bin/8809 Submitted by: "John C. Place" <jcplace@ibm.net> Prompted by: <nrahlstr@winternet.com>
* Don't try to open the /dev/rXXX device.msmith2000-05-311-1/+1
|
* Fix nits in previous commit: restore option ordering of the optionsheldonh2000-03-131-2/+5
| | | | | description list; break an overly long line; use the Fx macro instead of "FreeBSD".
* -e -> -I change.imp2000-03-102-9/+36
| | | | | | -s for sumary Approved by: jkh
* Don't use the old raw name for disk devices.obrien2000-03-091-1/+1
|
* Add ata(4) support.ru2000-02-111-1/+1
| | | | Approved by: jkh
* Stuff a variable declaration inside a #if block that is only used for thatbillf1999-09-251-0/+2
| | | | #if.
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Add -e option to usage().dwhite1999-08-251-2/+2
|
* Add new option to fdisk: -ephk1999-08-232-13/+40
| | | | | | | This wipes the MBR and creates slice 1 as a FreeBSD slice covering the disk starting from the second track to the cylinder aligned end of the disk. This is the most compatibly layout we have as far as I know.
* Drop the embedded boot code in favour of a -B option which readsrnordier1999-06-273-142/+100
| | | | | | the boot code from /boot/mbr, or elsewhere as defined by the revised "-b bootcode" option; use getopt(3); clarify usage(); partially revise man page; etc.
* Note that a standard MBR supports booting only from hard drive 0rnordier1999-03-131-1/+4
|
* Add a -b option as a simple way to rewrite the mbr codernordier1999-01-222-4/+27
| | | | (eg. replacing a boot manager with a standard mbr)
* sd0 -> da0joerg1998-11-262-4/+4
|
* Add an entry for the new NetBSD partition id.alex1998-11-061-1/+2
|
* Add an entry for BSD/OS [23].x partition types.jkoshy1998-11-061-1/+2
| | | | | | | | | I don't have access to a BSD/OS machine to check the veracity of the magic number. However, no harm will be done by the commit and since someone was motivated enough to file a PR, I'm committing the change. PR: 7629 Submitted by: Jos Backus <jbackus@plex.nl>
* Linux swap and Solaris x86 use the same BIOS partition id.obrien1998-09-161-2/+2
|
* Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unusedcharnier1998-07-062-119/+109
| | | | #includes. Spelling. Use err(3) and add usage().
* Fixed printf format errors.bde1998-06-281-8/+8
|
* Fix a spelling error.steve1998-06-041-1/+1
| | | | | PR: 6857 Submitted by: Josh Gilliam <josh@quick.net>
* Fix typo in prompt.jraynard1998-05-201-1/+1
|
* Add NTFS partition type.obrien1998-03-291-8/+16
| | | | | | | Add "." at the end of some sentances. Also print "flag 80" in English. Give hint that "sysid" for FreeBSD is 165 decimal. Ensure active partition specified by user is 1-4.
* Add more DOS/Win95 partition typesache1998-03-141-2/+5
|
* Oops, merge back 32bit fat description from -stable.ache1998-03-071-1/+1
| | | | It was added to -stable but not to -current, strange.
* Add primary fat-32ache1998-03-071-0/+1
|
* Number partitions 1-4, not 0-3.brian1997-06-032-30/+30
| | | | | | Any existing config files (using the -f option) will need to be changed although using the old files will usually result in an error (partition 0 is invalid).
* Don't overflow when calculating the size in MB of a partition.gibbs1997-06-021-3/+12
| | | | No more 241MB 4+ gig partitions for me!
* OpenBSD uses ID 0xa6 for its partitions on i386, arc and others that needimp1997-05-021-0/+1
| | | | | | a BIOS-like partition table. We now detect this correctly and print the right thing. Obtained from: Value obtained from OpenBSD sources.
* This update adds the support for != 512 byte sector SCSI devices tosos1996-12-011-5/+24
| | | | | | | | | | | | | | | | the sd & od drivers. There is also slight changes to fdisk & newfs in order to comply with different sectorsizes. Currently sectors of size 512, 1024 & 2048 are supported, the only restriction beeing in fdisk, which hunts for the sectorsize of the device. This is based on patches to od.c and the other system files by John Gumb & Barry Scott, minor changes and the sd.c patches by me. There also exist some patches for the msdos filesys code, but I havn't been able to test those (yet). John Gumb (john@talisker.demon.co.uk) Barry Scott (barry@scottb.demon.co.uk)
* Allow fdisk to be driven from a configuration file, making a 3rd-partyjkh1996-11-062-51/+771
| | | | | | | utility for front-ending its operation more of a possibility. 2.2-RELEASE candiate. Closes PR#1960 Submitted-By: Darryl Okahata <darrylo@hpnmhjw.sr.hp.com>
* The dos() function needs a new second argument, containing the sizebde1996-10-131-10/+13
| | | | | | | | | | | | | | | | | | of the partition. Only if the size is 0 should the special handling of 0 as first argument be triggered. [This bug caused offset 0 to give C/H/S = 0/0/0 instead of 0/0/1.] The init_sector0 function needs to decrease the first argument to the second call to dos() by one to be consistent with the calls to dos() in change_part(). [This bug caused fdisk -i to create bogus partition tables with the ending C/H/S value 1 too high. This usually gives S = 1 instead of S = maximum, so the geometry guessing in the slice code and perhaps in SCSI BIOSes was defeated.] Submitted by: Tor Egge <tegge@itea.ntnu.no>
OpenPOWER on IntegriCloud