Expand description
This crate allows you to send various commands to storage devices, and to interpret the answers.
Example
use hdd::Device;
use hdd::scsi::{SCSIDevice, SCSICommon};
let dev = Device::open("/dev/da0").unwrap();
let (sense, data) = dev.scsi_inquiry(vpd, page).unwrap();
TODO show how to send hand-crafted commands, or how to use porcelain interfaces.
For more, dive into documentation for the module you’re interested in.
Re-exports
pub use device::*;
Modules
All things ATA.
Thin wrapper for platform-specific device handle.
Use this module to match hard drive and SMART values it returns against smartmontools database.
All things SCSI.
Enums
Data transfer direction