summaryrefslogtreecommitdiff
path: root/sbin/pdisk
AgeCommit message (Expand)Author
2016-01-27On-disk partition name/types/processorid may or may not be NULKenneth R Westerback
2016-01-27Remove some lies and pointless verbiage. Tweak HISTORY.Kenneth R Westerback
2016-01-27We do not support logical_block != physical_block. Remove logical_blockKenneth R Westerback
2016-01-27Two more for the attic.Kenneth R Westerback
2016-01-27Check block 0 signature, physical block size and physical block count whenKenneth R Westerback
2016-01-27Nope. Missed a couple of '{}' that could go.Kenneth R Westerback
2016-01-27Nuke another (and I hope final) batch of superfluous '{}' around singleKenneth R Westerback
2016-01-26Rework and simplify string argument parsing. All string arguments are atKenneth 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-26Simplify logic of read_partition_map(), junking retries with various sizesKenneth R Westerback
2016-01-25Two more for the attic.Kenneth R Westerback
2016-01-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
2016-01-25Add read/write_block0 and read/write_dpme functions, not yet used.Kenneth 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-24Nuke more pointless checks for map NULLness.Kenneth R Westerback
2016-01-24Whitespace fixes.Kenneth R Westerback
2016-01-24Assuming the map is always provided simplifies a bunch of logic, nukesKenneth R Westerback
2016-01-24Delete duplicated line that was setting sbBlkCount to 0; Score oneKenneth R Westerback
2016-01-23Nuke unused kPatchType. Nuke kStringNot and use " not' where needed.Kenneth R Westerback
2016-01-23No need for 'default_value' parameter for get_number_argument() since weKenneth R Westerback
2016-01-23No need for get_string_argument() parameter 'reprompt' since weKenneth R Westerback
2016-01-23Pass the disk sector size to open_partition_map(), eliminating it'sKenneth R Westerback
2016-01-23Add comments to ensure future spelunkers realize that struct block0Kenneth R Westerback
2016-01-23Avoid double prompt after creating default map on startup.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-23Nuke sync_device_size() and do it's one-field-update in coerce_block0(),Kenneth R Westerback
2016-01-23Always initialize media_size to provided mediasz in open_partition_map().Kenneth R Westerback
2016-01-23Break annoying long line.Kenneth R Westerback
2016-01-22Change partition map field 'data' to 'dmpe'. Change 'create_data'Kenneth R Westerback
2016-01-22Of course if you change the parameter name you need to change the uses ofKenneth R Westerback
2016-01-22Change parameter name 'data' to 'block0'.Kenneth R Westerback
2016-01-22Whitespace fixes.Kenneth R Westerback
2016-01-22Rename map field 'misc' to 'block0' since that's what it is.Kenneth R Westerback
2016-01-22Whitespace fixes.Kenneth R Westerback
2016-01-22Whitespace fixes.Kenneth R Westerback
2016-01-22Lost a fix for one invocation of write_block() in diff juggling. ItKenneth R Westerback
2016-01-22Merge read_block() and read_file_media() into read_block(). DittoKenneth R Westerback
2016-01-22escape punctuation to have it mark up properly;Jason McIntyre
2016-01-22Repair creation of initial partition table on a blank disk, brokenKenneth 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-21Don't try to be cute by silently opening a disk read-only when R/WKenneth R Westerback