summaryrefslogtreecommitdiff
path: root/sbin/pdisk/partition_map.c
AgeCommit message (Expand)Author
2016-02-01Un-shorten some lines that don't need breaking anymore. Remove a couple ofKenneth R Westerback
2016-01-31Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which isKenneth R Westerback
2016-01-31Use delete_entry()/create_entry() in delete_partition_from_map() instead ofKenneth R Westerback
2016-01-31Fold add_data_to_map() into create_entry() as the former is always calledKenneth R Westerback
2016-01-31Don't use add_data_to_map() when reading from disk, since it resets someKenneth R Westerback
2016-01-31Just call contains_driver() when you need to know rather than carrying aKenneth 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-30Refactor add_partition_to_map() to be simpler if perhaps lessKenneth R Westerback
2016-01-30There is not much to do if we run out of memory, so simply exit ifKenneth R Westerback
2016-01-29Fold struct block0 into struct partition map. There can be only oneKenneth R Westerback
2016-01-29Warn of partitions extending past the end of the media.Kenneth 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-29Conform to Apple Mac OS X's behaviour of setting dpme_flags on freeKenneth R Westerback
2016-01-29Conform to Apple Mac OS X's behaviour of not giving 'Apple_Free'Kenneth R Westerback
2016-01-28Flip base_order to a LIST().Kenneth R Westerback
2016-01-28Delete a bunch of Morris dancing in delete_partition_from_map().Kenneth R Westerback
2016-01-28Hand rolled lists suck. First, replace disk_order with an LIST.Kenneth R Westerback
2016-01-28Oops. Deleted one too many lines. Need to advance pointer when traversingKenneth R Westerback
2016-01-28When adding a new partition to the map, use only existing mappedKenneth R Westerback
2016-01-28Since we don't allow maps to be created or opened with an invalidKenneth R Westerback
2016-01-28Use consistent 'return' idiom -- no parenthesis since that was the styleKenneth R Westerback
2016-01-28Make 'r' (reorder, a.k.a. swap) command work with any two existingKenneth R Westerback
2016-01-27Traverse next_by_base when checking maps coverage, not next_on_disk!Kenneth R Westerback
2016-01-27We do not support logical_block != physical_block. Remove logical_blockKenneth R Westerback
2016-01-27Check block 0 signature, physical block size and physical block count whenKenneth 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-26Simplify logic of read_partition_map(), junking retries with various sizesKenneth R Westerback
2016-01-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
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-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-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-22Rename map field 'misc' to 'block0' since that's what it is.Kenneth R Westerback