summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Collapse)Author
2006-11-08add a -y flag, for non-interactive useTheo de Raadt
2006-10-24Check strlen(buf) to be > 0 before accessing buf[strlen(buf)-1].Moritz Jodeit
OK ray@ cloder@
2006-10-20OpenBSD no longer supports using an older FreeBSD MBR partition.David Hill
ok krw@
2006-10-15build fdisk on landiskDale Rahn
2006-08-05Mention that `b', `k', `m', and `g' can be specified after the printRay Lai
command to print partition sizes in units of bytes, kilobytes, megabytes, and gigabytes. Inspired by patch from Hiren Patel <hiren at obsidian dot co dot za>. OK jmc@ and otto@
2006-07-27Change some obvious atoi() to strtonum().Ray Lai
OK tedu@
2006-07-27Add checks to each write(2) attempt and try to keep fdisk in aRay Lai
consistent state upon write failure. OK krw@ and deraadt@.
2006-07-18Fix a typo, paritition -> partition.Marc Balmer
From Alexey Dobriyan <adobriyan@gmail.com>, thanks.
2006-07-09Do not try and read /usr/mdec/mbr in ``fdisk -e'' unless the architectureMiod Vallat
really provides it.
2006-07-09Add armish to MANSUBDIRMiod Vallat
2006-06-09EFI partition types; didickman@yahoo.comTheo de Raadt
2006-06-06System build pieces for armish arch.Dale Rahn
2006-05-29Change MBR_read() and MBR_write() to return -1 on error and setRay Lai
errno = EIO for short reads. This makes it easier to check for read and write errors. Much patient tutoring by weingart@, deraadt@, and cloder@. Correctly use ssize_t to store read(2) and write(2) return values. No functional change, since MBR_read() and MBR_write() return values aren't currently checked. OK deraadt@
2006-04-26man page is gzip'd, should store as unsigned char array.Theo de Raadt
2005-12-18Fix condition so "BIOS fixup botch" can, unlikely as it is, beKenneth R Westerback
detected. Found by lint. ok millert@
2005-11-21Replace default DEV_BSIZE sector conversion factor with disklabel'sKenneth R Westerback
sector size when possible. Fixes the "[ XX Sectors ]" size display. Pointed out by Robert Szasz while playing with his Sony Hi-MD device. Apply input conversion fixes similar to those recently applied to disklabel(8). Use correct sector size in the conversions. It is still *not* possible to use unusual sector sizes for non-ISO9660 filesystems! ok millert@
2005-05-01- better synopsisJason McIntyre
- sync usage() - add fstab(5) to SEE ALSO - NOTES -> CAVEATS and improve bits ok deraadt@ improvements and ok tom@
2005-04-30correctly use whole disk, pointed out by tobyTheo de Raadt
2005-04-30various fixes;Jason McIntyre
2005-04-30match disklabel changeTheo de Raadt
2005-04-30make this useable to people busy installingTheo de Raadt
2005-03-29Allow setting of partition flag with an optional explicit value. PR 4143.Otto Moerbeek
ok weingart@ deraadr@
2005-02-16Prevent gzip from storing mtime and filename in the header so weTodd C. Miller
get identical binaries.
2005-01-19add a swap primitive; ok various, will be polished after by tomTheo de Raadt
2005-01-13be aware of zaurusTheo de Raadt
2004-11-100xBF is new Solaris ID; lclee@west.sun.comTheo de Raadt
2004-11-06gzip embedded man pages, and pipe through gunzip when viewing.Otto Moerbeek
ok deraadt@
2004-09-30remove stray const, noted by david@Otto Moerbeek
2004-09-18some delinting; ok ottoTheo de Raadt
2004-08-03spacingTheo de Raadt
2004-08-03Handle geometry parameters as unsigned quantities, getting rid of negativeOtto Moerbeek
number of sectors on large disks and other similar problems. ok toby@ tom@ deraadt@
2004-07-13Remove unused argument 'int pn' to PRT_fix_CHS(). The 'int pn'Tom Cosgrove
argument to PRT_parse() then becomes unused, so remove that too. ok henning@, otto@
2004-07-11Just use err(1, NULL) following malloc() failures, per err(3).Tom Cosgrove
ok otto@
2004-07-10The long descriptions of partition types are not used by the code, soTom Cosgrove
have them as comments rather than data. Reduces the size of the executable by over 2 KB. Also s/Netware/NetWare/. ok tedu@ deraadt@
2004-06-26new sentence, new line;Jason McIntyre
2004-06-22Make the interactive "update" command match the command-line "-u"Tom Cosgrove
option by updatng/setting the 0xAA55 signature at the end of the sector. ok nick@ weingart@
2004-05-03Remove OpenBSD/pegaos, this has been announced before but delayed untilDale Rahn
the tree was stable. No point in code supporting a company which screws its employees being in the OpenBSD tree.
2004-02-25correct NOMAN= caseTheo de Raadt
2004-01-29another typoMichael Shalayeff
2004-01-29cats will have fdiskTheo de Raadt
2004-01-28Repair build links for pegosos, and also build for amd64Theo de Raadt
2004-01-07Better diagnostic message if we can't open the external MBR fileTom Cosgrove
ok weingart@, tedu@
2004-01-07Sync fdisk's internal master boot record with the recent changesTom Cosgrove
to /usr/mdec/mbr. (This code is only used if /usr/mdec/mbr cannot be found.) ok toby@, tedu@
2003-10-31These should build on pegasosDale Rahn
2003-07-29spacesTheo de Raadt
2003-07-02missing protosTheo de Raadt
2003-06-11ansificationTheo de Raadt
2003-06-03- section reorderJason McIntyre
- some mdoc fixes
2003-06-03Nuke terms 3 & 4.Tobias Weingartner
2003-04-19change "%12.f" -> "%12.0f" to avoid a -Wformat warningAnil Madhavapeddy
ok millert@