summaryrefslogtreecommitdiff
path: root/sbin/fdisk/part.c
AgeCommit message (Expand)Author
2021-09-13disk.dk_size can't be 0 as we errx() if that happens duringKenneth R Westerback
2021-09-12Stop taking detour through unit_types[SECTORS] to findKenneth R Westerback
2021-09-02Split part_type into separate types 'mbr_type' and 'gpt_type',Kenneth R Westerback
2021-08-27Replace stray hand-rolled nitems() with nitems().Kenneth R Westerback
2021-08-12Further reduce cross-file confusion by adding USER_help() andKenneth R Westerback
2021-07-22Have PRT_protected_guid() return 0/-1 like everything elseKenneth R Westerback
2021-07-19Tweak one comment and nuke a bunch of pointless ones.Kenneth R Westerback
2021-07-18Don't save the prt_scyl/prt_ecyl values, change them, use themKenneth R Westerback
2021-07-16Change PRT_protected_guid() to take native order uuid's instead of little endianKenneth R Westerback
2021-07-16Be consistent and always return -1 to indicate failure.Kenneth R Westerback
2021-07-15No need for separate b_sectors, b_offset and b_type variables. We have structKenneth R Westerback
2021-07-13No need to manually reinvent nitems() 5 times to scan part_types.Kenneth R Westerback
2021-07-13Disk sector addresses are normally stored/provided in uint64_tKenneth R Westerback
2021-07-12Toss 'const' in anywhere the compiler doesn't complain about, thus identifyingKenneth R Westerback
2021-07-12Final batch of struct field name tweaks. 'cmd_' for cmd, ut_' forKenneth R Westerback
2021-07-12Add 'dk_' prefix to struct disk field names.Kenneth R Westerback
2021-07-11Add 'prt_' prefix to struct prt field names.Kenneth R Westerback
2021-07-11Add 'mbr_' prefix to struct mbr field names.Kenneth R Westerback
2021-07-11Add tabs to make variable declarations easierKenneth R Westerback
2021-07-11'return' is not a function call.Kenneth R Westerback
2021-06-21Wrap #define nitems in #ifndef nitems/#endif.Kenneth R Westerback
2021-06-21Add -A option to "safely" initialize a GPT without removingKenneth R Westerback
2021-06-13There is no '!' in HiFive.Kenneth R Westerback
2021-06-13UUID_STR_LEN+1 is less mysterious than '37'.Kenneth R Westerback
2021-06-12Recognize "HiFive! FSBL" and "HiFive! BBL" GPT partitions.Kenneth R Westerback
2021-06-10Local functions don't need to be in .h files, nor do they need theKenneth R Westerback
2021-06-03Recognize the Apple APFS GPT partition types seen on Apple M1 boxen.Kenneth R Westerback
2021-05-15Keep internal representation of DOSPTYP_EFI partition sizes correct.Kenneth R Westerback
2021-05-08Recognize GPT partitions of type 21686148-6449-6e6f-744e-656564454649 (a.k.a.Kenneth R Westerback
2021-05-07Replace random mix of u_int* and uint* types with consistent uint* types.Kenneth R Westerback
2017-03-26cleanup fdisk(8) partition names used by FAT file systems so they are moreIgor Sobrado
2016-12-27The "disk too large" and "only LBA values saved" messages are moreKenneth R Westerback
2015-11-26When prompting for a GPT partition type, use the partition's current type asTim van der Molen
2015-11-19Reduce overburden of unnecessary #include's. Note that param.h isKenneth R Westerback
2015-10-26Add GPT editing. Based on GSOC 2014 work by Markus Muller.Kenneth 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-26Expand internal representation of partition starting LBA and sizeKenneth R Westerback
2015-03-16Stop passing around a pointer to the stack variable 'disk' in main().Kenneth R Westerback
2015-03-14Whitespace & KNF tweaks. Change functions whose return values areKenneth R Westerback
2015-03-14Switch all the license blocks to the standard OpenBSD/ISC license.Kenneth R Westerback
2014-05-05Ugly workaround for an overoptimistic alignment expectation of dos_partitionMiod Vallat
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-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-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