[−][src]Crate hdd
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
ata | All things ATA. |
device | Thin wrapper for platform-specific device handle. |
drivedb | Use this module to match hard drive and SMART values it returns against smartmontools database. |
scsi | All things SCSI. |
Enums
Direction | Data transfer direction |