Skip to main content

Crate bootsmith_disk

Crate bootsmith_disk 

Source
Expand description

Raw device access. The single chokepoint through which bootsmith touches /dev/rdiskN. Lives behind the Device trait from bootsmith-core.

Safety guards (the most important code in the project, after the boot records themselves):

  • Refuse the boot disk.
  • Refuse any disk flagged internal: true by DiskArbitration.
  • Refuse disks larger than 256 GiB without --force.
  • Always operate on /dev/rdiskN, never /dev/diskN.

Implementations are gated by cfg(target_os = ...). macOS is the only target in v1; Linux is planned for v2.

Structs§

DeviceInfo
Description of a candidate target device, returned by enumeration so we can show the user a clear confirm prompt.
SafetyConfig
Caller-provided safety overrides. Default is the safe configuration.

Enums§

DiskError

Type Aliases§

Result