summaryrefslogtreecommitdiff
path: root/sbin/fdisk
AgeCommit message (Expand)Author
2015-11-15Move zapping of invalid GPT data into GPT_get_gpt() rather thanKenneth R Westerback
2015-11-14Since -l is ignored if -c/-h/-s are specified, make that combinationKenneth R Westerback
2015-11-14Consolidate usage() checking for -c/-h/-s with other checks. TweakKenneth R Westerback
2015-11-14pledge("stdio", NULL) for code path that just prints the MBR or GPT. i.e.Kenneth R Westerback
2015-11-14If none of -i, -u or -e are specified exit immediately after theKenneth R Westerback
2015-11-13No need to supplement usage() with extra messages about -b needing -i, orKenneth R Westerback
2015-11-13No need to zero a global variable before use.Kenneth R Westerback
2015-11-13Make usage() output fit on a 'normal' 80-character line. Tweak someKenneth R Westerback
2015-11-13Move from opening/closing disk for every i/o to opening the disk onceKenneth R Westerback
2015-11-12'reinit mbr' must zero existing MBR and GPT partition informationKenneth R Westerback
2015-11-12Refresh the in-kernel copy of the disklabel from the disk *after* writingKenneth R Westerback
2015-11-12Simplify string_from_line(). No functional change.Tim van der Molen
2015-11-12Avoid problems with pathological input during edit operations. i.e. neverKenneth R Westerback
2015-11-11Display full disk size when editing GPT, not the truncated MBR size. DisplayKenneth R Westerback
2015-11-10Use UINT32_MAX for the size of the EFI System partition on disks larger thanKenneth R Westerback
2015-11-03Don't allow the user to enter GPT partition names too large to fitKenneth R Westerback
2015-10-26tweak previous;Jason McIntyre
2015-10-26Add GPT editing. Based on GSOC 2014 work by Markus Muller.Kenneth R Westerback
2015-10-26Flesh out GPT info and tweak other verbiage to be less MBR specific.Kenneth R Westerback
2015-10-07Note permissions for the crc32() code adapted from Hacker's Delight.Kenneth R Westerback
2015-10-05Oops. Missed file in fdisk commit.Kenneth R Westerback
2015-10-05Tweak man page to describe newly enhanced '-g' operation.Kenneth R Westerback
2015-10-05Enhance '-g' to create a default GPT label in addition to the protectiveKenneth R Westerback
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