summaryrefslogtreecommitdiff
path: root/distrib/special/pdisk
AgeCommit message (Collapse)Author
2016-01-27Check block 0 signature, physical block size and physical block count whenKenneth R Westerback
reading partition map. Check for unmapped physical blocks and overlapping partitions when reading partition map. No need for duplicate checks in validate_map(), so remove validate.c from build and 'v' command from code and docs.
2016-01-25Use new read/write_block0 and read/write_dpme which handle anyKenneth R Westerback
endian or alignment issues forcefully. Removes need for convert_* functions so unhook convert.c from build. read/write_block become static functions inside file_media.c. Tweak struct block0 to stop trying to handle alignment issues by clever declaration. Rely on the new functions to accurately translate between on-disk and in-memory layouts. Enables pdisk to work on amd64 and likely other architectures if it's ever desirable. Does bring back DEV_BSIZE to pdisk.c since the in-memory structure will *not* be 512 bytes on other archs.
2016-01-18sync to mainTheo de Raadt
2016-01-16No need to abstract malloc(), so replace new_file_media() withKenneth R Westerback
malloc(). Removes last use of last used function in media.c, so unhook that from the Makefile and remove forward declarations from media.h. No functional change.
2016-01-16Nuke support for 1024- and 2048-byte sector devices. Error out ifKenneth R Westerback
anything other than 512-byte sectors are encountered. Unlink deblock_media.c from the build. ok jasper@
2016-01-15Replace bitfield_get() and bitfield_set() abstraction with simple maskingKenneth R Westerback
operations since all the uses but 1 are for 1 bit fields. No functional change intended. Unhook bitfield.c from build.
2016-01-14Nuke 'HFS_name' field which was not referenced now other than settingKenneth R Westerback
it and freeing it. Unhook hfs_misc.c from build since it now longer contains anything being used.
2016-01-12Use normal err/errx/warn/warnx rather than handrolling new ones. MoveKenneth R Westerback
usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@
2016-01-12get caught up with files krw removedTheo de Raadt
2014-12-23/bin and /sbin are moving towards static PIE, so on many architecturesTheo de Raadt
the PIC .o files are unsuitable for static "instbin". This adds more work at build time, but the result will be optimized for size.