lsm::local_disk

Function ident_led_on

source
pub fn ident_led_on(disk_path: &str) -> Result<(), LsmError>
Expand description
extern crate lsm;

use lsm::local_disk;

fn main() {
    match local_disk::ident_led_on("/dev/sda") {
        Err(e) => println!("Unable to turn on identification LED: reason {:?}", e),
        Ok(_) => println!("Enjoy your blinking LED"),
    }
}