Struct loopdev::LoopControl [−][src]
pub struct LoopControl { /* fields omitted */ }
Expand description
Interface to the loop control device: /dev/loop-control
.
Implementations
Finds and opens the next available loop device.
Examples
use loopdev::LoopControl;
let lc = LoopControl::open().unwrap();
let ld = lc.next_free().unwrap();
println!("{}", ld.path().unwrap().display());