summaryrefslogtreecommitdiff
path: root/sbin/pdisk/dump.c
AgeCommit message (Expand)Author
2016-02-23Fix display of pdisk partition sizes by casting the 32-bit numberKenneth R Westerback
2016-01-31Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which isKenneth R Westerback
2016-01-31Nuke djust_value_and_compute_prefix() and use fmt_scaled() to displayKenneth R Westerback
2016-01-31Just call contains_driver() when you need to know rather than carrying aKenneth R Westerback
2016-01-31Move dump_block() declaration from io.h to io.c since it is notKenneth R Westerback
2016-01-31Apple sets lblock_start and lblocks to 0 in free space entries. DoKenneth R Westerback
2016-01-30Move last three lines (#define's) from dpme.h to partition_map.h andKenneth R Westerback
2016-01-30Fold struct dpme into struct entry. Same reasons as for foldingKenneth R Westerback
2016-01-29Fold struct block0 into struct partition map. There can be only oneKenneth R Westerback
2016-01-29Tweak printing of partitions. Always show the pblock info in theKenneth R Westerback
2016-01-29Shorter names means a few whitespace adjustments.Kenneth R Westerback
2016-01-29Rename struct partition_map_header to struct partition_map. No change toKenneth R Westerback
2016-01-29Rename struct partition_map to struct entry. No change to .o files.Kenneth R Westerback
2016-01-28Hand rolled lists suck. First, replace disk_order with an LIST.Kenneth R Westerback
2016-01-28Since we don't allow maps to be created or opened with an invalidKenneth R Westerback
2016-01-27No need to copy dmpe_name to a buffer before printing it.Kenneth R Westerback
2016-01-27make sure to check malloc(3) return pointer against NULL.Gleydson Soares
2016-01-27We do not support logical_block != physical_block. Remove logical_blockKenneth R Westerback
2016-01-27Nuke another (and I hope final) batch of superfluous '{}' around singleKenneth R Westerback
2016-01-26dpme_name and dpme_type are NUL-terminated in Apple code, so useKenneth R Westerback
2016-01-26Whitespace, line wrapping fixes. Nuke many superfluous '{}' around singleKenneth R Westerback
2016-01-26Whitespace, line wrapping fixes.Kenneth R Westerback
2016-01-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
2016-01-25Tweak fields in struct dpme to be more consistent with Apple's info.Kenneth R Westerback
2016-01-25remove some uneeded includesJonathan Gray
2016-01-24Whitespace.Kenneth R Westerback
2016-01-24Nuke get_align_long() and put_align_long() #define's. They don't doKenneth R Westerback
2016-01-24Whitespace fixes.Kenneth R Westerback
2016-01-23Nuke unused kPatchType. Nuke kStringNot and use " not' where needed.Kenneth R Westerback
2016-01-23Flip read_block() and write_block() back to taking sector addressesKenneth R Westerback
2016-01-23map->block0 is always allocated or the map is discarded.Kenneth R Westerback
2016-01-22Change partition map field 'data' to 'dmpe'. Change 'create_data'Kenneth R Westerback
2016-01-22Rename map field 'misc' to 'block0' since that's what it is.Kenneth R Westerback
2016-01-22In the "why use two variables when one would do" category, eliminateKenneth R Westerback
2016-01-22Nuke 'expert' mode and the enabling, undocumented, '-d' flag byKenneth R Westerback
2016-01-21Hoist all file opening and ioctl calls into main(), passing a pointer toKenneth R Westerback
2016-01-21Nuke 'writable' field now that it is always in sync with 'rflag'. SinceKenneth R Westerback
2016-01-19Bring code into line with man page and usage() by only allowing oneKenneth R Westerback
2016-01-18The contents of the Apple_Patches partition is none of our business.Kenneth R Westerback
2016-01-18struct file_media had 1 field left. And one place where structKenneth R Westerback
2016-01-18Run indent(1) over it and tweak the results a bit manually to look moreKenneth R Westerback
2016-01-17Change "//" comments to "/**/". Nuke really stupid ones.Kenneth R Westerback
2016-01-17Reduce namespace pollution by eliminating parameter names from forwardKenneth R Westerback
2016-01-17Kill leading, imbedded, trailing whitespace.Kenneth R Westerback
2016-01-17Remove a bunch of ridiculous and uninformative comments like "// Defines".Kenneth R Westerback
2016-01-17The great de-typedef'ification concludes with u32 -> uint32_t. And aKenneth R Westerback
2016-01-17The great de-typedef'ification continues.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues. OSType -> unsigned long.Kenneth R Westerback
2016-01-17The great de-typedef'ification continues. DDMap -> struct ddmap.Kenneth R Westerback