summaryrefslogtreecommitdiff
path: root/sbin/fdisk/part.c
AgeCommit message (Expand)Author
2022-08-29Print warning when an MBR partition starts or extends past theKenneth R Westerback
2022-05-08Rename gt_protected field of struct gpt_type to gt_attr andKenneth R Westerback
2022-05-08Shuffle local helper function declarations and definitions intoKenneth R Westerback
2022-05-07Now that the internal versions of GPT partitions are host-endian,Kenneth R Westerback
2022-05-06Rename PRT_uuid_to_[protection|typename] to PRT_uuid_to_[protected|sname],Kenneth R Westerback
2022-05-06When printing the GPT table, display "Microsoft basic data" instead ofKenneth R Westerback
2022-05-03Rework display of partition types, removing unnecessary trailingKenneth R Westerback
2022-04-28Convert the internal GPT partition entries into host-endian formKenneth R Westerback
2022-04-18Convert the GPT header read from disk into a host-endian version,Kenneth R Westerback
2022-03-16The 'status' parameter to uuid_* functions is uint32_t, not int.Kenneth R Westerback
2022-03-15Always use letoh32(gh.gh_part_num) instead of NGPTPARTITIONS whenKenneth R Westerback
2022-03-14Abstract duplicated code scanning gpt_types[] into a helperKenneth R Westerback
2022-03-14PRT_uuid_to_typename() can return const char *.Kenneth R Westerback
2022-03-14Nuke extraneous blank line.Kenneth R Westerback
2022-03-11Simple hack to preserve the EFI System partition whenKenneth R Westerback
2022-02-04Wrap some annoyingly long lines.Kenneth R Westerback
2022-02-04Remove CHS information from internal representation of MBR partitions. GenerateKenneth R Westerback
2022-02-03fdisk(8): Make -A preserve BIOS boot partitionVisa Hankala
2022-01-27Nuke single use function PRT_fix_BN() and just use the ATA/ATAPI LBA -> CHSKenneth R Westerback
2022-01-21Split PRT_print() into PRT_print_parthdr() and PRT_print_part()Kenneth R Westerback
2022-01-18PRT_make() can just zap the destination dos_partition if theKenneth R Westerback
2021-10-18Don't bother decoding a partition's c/h/s start or end from the MBR read fromKenneth R Westerback
2021-10-18r1.66 (May 2014) introduced a two #if 0/#else/#endif chunks to avoid "overKenneth R Westerback
2021-10-10No need to assign dl.d_nsectors to disk.dk_sectors twice.Kenneth R Westerback
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