summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Expand)Author
2015-09-09In the flag command description, mention that a bootable partitionTheo de Raadt
2015-09-09remove 3 paragraphs of useless information at the start, and replaceTheo de Raadt
2015-09-06correct a mistake in my previous commit;Jason McIntyre
2015-09-04shuffle -b into place; while there, do some general tidy upJason McIntyre
2015-09-04Add a -b option, to be used together with -i, that tells fdisk to add aMark Kettenis
2015-08-27Nuke some trailing whitespace that keeps coming back.Kenneth R Westerback
2015-08-19Missing prototypes. Noted by deraadt@Kenneth R Westerback
2015-07-09Nuke unused variable.Kenneth R Westerback
2015-07-08Do not attempt to read a disk sector worth of data from the fileKenneth R Westerback
2015-04-02Don't printf("offset: ...) before every call to MBR_print(). Do itKenneth R Westerback
2015-03-30Even better -- readsector() and writesector() become DISK_readsector() andKenneth R Westerback
2015-03-30Nuke declaration of unused and non-existant function MBR_print_disk().Kenneth R Westerback
2015-03-29Rename MBR_readsector() and MBR_writesector() to just readsector()Kenneth R Westerback
2015-03-29A couple of letoh64() to make GPTSIGNATURE test work better onKenneth R Westerback
2015-03-28Add a simple crc32() implmentation to avoid pulling in libz, whichKenneth R Westerback
2015-03-27Wrap some annoying long lines.Kenneth R Westerback
2015-03-27Use DOSACTIVE define instead of magic number 0x80.Kenneth R Westerback
2015-03-26Adapt ask_string() from disklabel's getstring(). It will be usedKenneth R Westerback
2015-03-26Allow input/printing/conversion of terabyte sizes. Which GPT partitonsKenneth R Westerback
2015-03-26Expand internal representation of partition starting LBA and sizeKenneth R Westerback
2015-03-19When zapping the GPT at the end of the disk, don't use disk.sizeKenneth R Westerback
2015-03-19Nuke now unused variable.Kenneth R Westerback
2015-03-18Stop passing around little used 'struct mbr tt' parameter. JustKenneth R Westerback
2015-03-17Stop passing around little used and superfluous 'offset' parameter.Kenneth R Westerback
2015-03-16Stop passing around a pointer to the stack variable 'disk' in main().Kenneth R Westerback
2015-03-16Document that -i/-u are mutually exclusive and clean up the relatedKenneth R Westerback
2015-03-14Whitespace & KNF tweaks. Change functions whose return values areKenneth R Westerback
2015-03-14Zap unused variable.Kenneth R Westerback
2015-03-14Switch all the license blocks to the standard OpenBSD/ISC license.Kenneth R Westerback
2015-02-10If 'write' is issued after a 'reinit' command, and the MBR to beKenneth R Westerback
2015-02-09Rename 'm_flag' to 'e_flag' since it's '-e' that sets it. RenameKenneth R Westerback
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2015-01-03Add support for creating a protective MBR for GPT.Joel Sing
2014-05-21Fix 'fdisk -u', a.k.a. MBR_pcopy(), on sparc64 and possibly others.Kenneth R Westerback
2014-05-05Ugly workaround for an overoptimistic alignment expectation of dos_partitionMiod Vallat
2014-04-13At some point, we are going to switch the mandoc(1) defaultIngo Schwarze
2014-03-31Use return value constants to make effects clearer than the useKenneth R Westerback
2014-03-31Whitespace rectification.Kenneth R Westerback
2014-03-31Nuke [get|put][short|long] and just use letoh[16|32] andKenneth R Westerback
2014-03-25Use 'struct dos_partition' variable to access 'struct dos_partition'Kenneth R Westerback
2014-03-23Change struct mbr signature field type from 'unsigned short' toKenneth R Westerback
2014-03-22warn() -> warnx() when errno is irrelevant.Kenneth R Westerback
2014-03-20Simplify a bit of code to make sure even -Wall can see the variablesKenneth R Westerback
2014-03-20Add back various #includes of err.h, unistd.h, ctype.h, ioctl.h toKenneth R Westerback
2014-03-20Add back #include <stdlib.h> so strtod() works better. Fixes fdisk onKenneth R Westerback
2014-03-18Sync built-in MBR with current (a.k.a. '2004 Version') ofKenneth R Westerback
2014-03-17Nuke pointless blank lines, defines, comments and casts. EliminateKenneth R Westerback
2014-03-17Un-revert, being careful to not break snap building. Add paranoia checkKenneth R Westerback
2014-03-14Revert last -- broke building snaps.Kenneth R Westerback
2014-03-13Remove some lint -- ARGSUSED.Kenneth R Westerback