summaryrefslogtreecommitdiffstats
path: root/sbin/pdisk
AgeCommit message (Expand)AuthorFilesLines
2019-07-31Allow sbBlkCount to be less than the number of physical sectors on thekrw1-4/+4
2019-01-17use $OpenBSD markertedu1-1/+1
2016-05-28Remove all the pledge "disklabel" before ioctl DIOCGPDINFO istb1-11/+1
2016-04-27Tweak command line processing vs pledge logic to make things nicer. Nokrw1-4/+6
2016-03-09Accept only character special devices rather than generating a corekrw1-4/+3
2016-02-23A disk name of /dev/wd0c doesn't work. Correct verbiage and example.krw1-7/+7
2016-02-23Fix display of pdisk partition sizes by casting the 32-bit numberkrw1-4/+4
2016-02-02Pledge, based on what's done in fdisk.krw1-2/+18
2016-02-01Use printf("%s",prompt) rather than printf(prompt) just for paranoia'skrw1-7/+7
2016-02-01Un-shorten some lines that don't need breaking anymore. Remove a couple ofkrw1-50/+42
2016-01-31Nuke pointless map field 'physical_block' and just use 'sbBlkSize' which iskrw4-13/+9
2016-01-31Nuke djust_value_and_compute_prefix() and use fmt_scaled() to displaykrw1-50/+19
2016-01-31Use delete_entry()/create_entry() in delete_partition_from_map() instead ofkrw1-7/+10
2016-01-31Fold add_data_to_map() into create_entry() as the former is always calledkrw1-37/+24
2016-01-31Don't use add_data_to_map() when reading from disk, since it resets somekrw1-5/+22
2016-01-31Just call contains_driver() when you need to know rather than carrying akrw3-14/+9
2016-01-31Move dump_block() declaration from io.h to io.c since it is notkrw3-6/+4
2016-01-31Apple sets lblock_start and lblocks to 0 in free space entries. Dokrw2-19/+11
2016-01-30Zap a couple of declarations for non-existant variable and function.krw1-3/+1
2016-01-30Another to the attic.krw1-50/+0
2016-01-30Move last three lines (#define's) from dpme.h to partition_map.h andkrw6-12/+15
2016-01-30Fold struct dpme into struct entry. Same reasons as for foldingkrw7-346/+318
2016-01-30Refactor add_partition_to_map() to be simpler if perhaps lesskrw1-70/+59
2016-01-30There is not much to do if we run out of memory, so simply exit ifkrw2-67/+48
2016-01-29Fold struct block0 into struct partition map. There can be only onekrw6-183/+139
2016-01-29Add do_dump_map() to make command processing more consistent. Passkrw1-3/+12
2016-01-29Base 10 should be enough for anybody! Allowing hex and octal numberkrw1-37/+21
2016-01-29Warn of partitions extending past the end of the media.krw1-1/+7
2016-01-29Tweak printing of partitions. Always show the pblock info in thekrw1-25/+7
2016-01-29Shorter names means a few whitespace adjustments.krw3-23/+18
2016-01-29Rename struct partition_map_header to struct partition_map. No change tokrw5-92/+92
2016-01-29Rename struct partition_map to struct entry. No change to .o files.krw3-61/+61
2016-01-29Conform to Apple Mac OS X's behaviour of setting dpme_flags on freekrw1-9/+9
2016-01-29Conform to Apple Mac OS X's behaviour of not giving 'Apple_Free'krw1-8/+2
2016-01-28Flip base_order to a LIST().krw2-62/+41
2016-01-28Delete a bunch of Morris dancing in delete_partition_from_map().krw1-27/+16
2016-01-28Hand rolled lists suck. First, replace disk_order with an LIST.krw4-80/+43
2016-01-28Oops. Deleted one too many lines. Need to advance pointer when traversingkrw1-1/+2
2016-01-28When adding a new partition to the map, use only existing mappedkrw1-47/+2
2016-01-28Since we don't allow maps to be created or opened with an invalidkrw2-17/+5
2016-01-28Use consistent 'return' idiom -- no parenthesis since that was the stylekrw4-14/+14
2016-01-28more tweaks; ok krwjmc1-4/+7
2016-01-28Tweak verbiage for 'r' (reorder) command.krw2-5/+6
2016-01-28Make 'r' (reorder, a.k.a. swap) command work with any two existingkrw1-12/+31
2016-01-27Traverse next_by_base when checking maps coverage, not next_on_disk!krw1-4/+4
2016-01-27No need to copy dmpe_name to a buffer before printing it.krw1-10/+3
2016-01-27Clear out some repetitive and pointless verbiage. Shuffle otherkrw1-41/+22
2016-01-27Tweak some verbiage.krw2-10/+10
2016-01-27make sure to check malloc(3) return pointer against NULL.gsoares1-1/+3
2016-01-27tweak previous; ok krwjmc1-1/+2