summaryrefslogtreecommitdiffstats
path: root/sbin/pdisk/dump.c
AgeCommit message (Expand)AuthorFilesLines
2016-02-23Fix display of pdisk partition sizes by casting the 32-bit numberkrw1-4/+4
2016-01-31Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which iskrw1-3/+3
2016-01-31Nuke djust_value_and_compute_prefix() and use fmt_scaled() to displaykrw1-50/+19
2016-01-31Just call contains_driver() when you need to know rather than carrying akrw1-7/+5
2016-01-31Move dump_block() declaration from io.h to io.c since it is notkrw1-1/+2
2016-01-31Apple sets lblock_start and lblocks to 0 in free space entries. Dokrw1-5/+1
2016-01-30Move last three lines (#define's) from dpme.h to partition_map.h andkrw1-2/+1
2016-01-30Fold struct dpme into struct entry. Same reasons as for foldingkrw1-70/+65
2016-01-29Fold struct block0 into struct partition map. There can be only onekrw1-38/+27
2016-01-29Tweak printing of partitions. Always show the pblock info in thekrw1-25/+7
2016-01-29Shorter names means a few whitespace adjustments.krw1-3/+3
2016-01-29Rename struct partition_map_header to struct partition_map. No change tokrw1-14/+14
2016-01-29Rename struct partition_map to struct entry. No change to .o files.krw1-9/+9
2016-01-28Hand rolled lists suck. First, replace disk_order with an LIST.krw1-13/+9
2016-01-28Since we don't allow maps to be created or opened with an invalidkrw1-7/+1
2016-01-27No need to copy dmpe_name to a buffer before printing it.krw1-10/+3
2016-01-27make sure to check malloc(3) return pointer against NULL.gsoares1-1/+3
2016-01-27We do not support logical_block != physical_block. Remove logical_blockkrw1-13/+4
2016-01-27Nuke another (and I hope final) batch of superfluous '{}' around singlekrw1-25/+15
2016-01-26dpme_name and dpme_type are NUL-terminated in Apple code, so usekrw1-3/+2
2016-01-26Whitespace, line wrapping fixes. Nuke many superfluous '{}' around singlekrw1-20/+12
2016-01-26Whitespace, line wrapping fixes.krw1-16/+16
2016-01-25Use new read/write_block0 and read/write_dpme which handle anykrw1-18/+12
2016-01-25Tweak fields in struct dpme to be more consistent with Apple's info.krw1-18/+14
2016-01-25remove some uneeded includesjsg1-2/+1
2016-01-24Whitespace.krw1-8/+8
2016-01-24Nuke get_align_long() and put_align_long() #define's. They don't dokrw1-9/+6
2016-01-24Whitespace fixes.krw1-18/+19
2016-01-23Nuke unused kPatchType. Nuke kStringNot and use " not' where needed.krw1-8/+6
2016-01-23Flip read_block() and write_block() back to taking sector addresseskrw1-3/+1
2016-01-23map->block0 is always allocated or the map is discarded.krw1-27/+23
2016-01-22Change partition map field 'data' to 'dmpe'. Change 'create_data'krw1-15/+15
2016-01-22Rename map field 'misc' to 'block0' since that's what it is.krw1-6/+6
2016-01-22In the "why use two variables when one would do" category, eliminatekrw1-3/+2
2016-01-22Nuke 'expert' mode and the enabling, undocumented, '-d' flag bykrw1-15/+6
2016-01-21Hoist all file opening and ioctl calls into main(), passing a pointer tokrw1-26/+1
2016-01-21Nuke 'writable' field now that it is always in sync with 'rflag'. Sincekrw1-3/+2
2016-01-19Bring code into line with man page and usage() by only allowing onekrw1-19/+1
2016-01-18The contents of the Apple_Patches partition is none of our business.krw1-91/+1
2016-01-18struct file_media had 1 field left. And one place where structkrw1-6/+4
2016-01-18Run indent(1) over it and tweak the results a bit manually to look morekrw1-468/+478
2016-01-17Change "//" comments to "/**/". Nuke really stupid ones.krw1-8/+8
2016-01-17Reduce namespace pollution by eliminating parameter names from forwardkrw1-34/+7
2016-01-17Kill leading, imbedded, trailing whitespace.krw1-23/+23
2016-01-17Remove a bunch of ridiculous and uninformative comments like "// Defines".krw1-8/+1
2016-01-17The great de-typedef'ification concludes with u32 -> uint32_t. And akrw1-39/+39
2016-01-17The great de-typedef'ification continues.krw1-24/+24
2016-01-17The great de-typedef'ification continues.krw1-13/+11
2016-01-17The great de-typedef'ification continues. OSType -> unsigned long.krw1-21/+2
2016-01-17The great de-typedef'ification continues. DDMap -> struct ddmap.krw1-7/+7