loopdev 0.1.0

Setup and control loop devices
Documentation

Build Status

loopdev

Setup and control loop devices.

Provides rust interface with similar functionalty to the linux utility losetup.

Examples

use loopdev::LoopControl;
let lc = LoopControl::open().unwrap();
let ld = lc.next_free().unwrap();

println!("{}", ld.get_path().unwrap().display());

ld.attach("test.img", 0).unwrap();
// ...
ld.detach().unwrap();