apm-partition-core 0.4.1

Pure-Rust read-only Apple Partition Map (APM) reader — Driver Descriptor Map + partition entries (name, type, start, count) from a byte buffer
Documentation
  • Coverage
  • 90.48%
    19 out of 21 items documented0 out of 6 items with examples
  • Size
  • Source code size: 11.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 444.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • h4x0r

Apple Partition Map (APM) reader.

Apple hybrid optical discs carry an Apple Partition Map so a Mac sees the disc's partitions (typically an Apple_HFS slice alongside the ISO 9660 filesystem). The layout (Inside Macintosh: Devices) is big-endian, in fixed-size device blocks: block 0 is the Driver Descriptor Map (signature ER, carrying the block size), and blocks 1.. are partition entries (signature PM), the first of which reports how many entries the map holds.

This crate reads the map for detection and partition geometry (name, type, start block, block count). Validated against a real hdiutil APM.

For forensic anomaly detection (overlaps, out-of-bounds, map-count inconsistency, residual/hidden entries) see the apm-partition-forensic crate.