A rust library to setup and control loopback devices
Find a file
mulhern 22dca1f4cf Fix a typo
Signed-off-by: mulhern <amulhern@redhat.com>
History 2017-03-28 09:43:33 -04:00
src Fix a typo 2017-03-28 09:43:33 -04:00
.gitignore Inital commit 2016-04-21 17:32:41 +01:00
.travis.yml Small tweaks to the generated docs 2016-05-20 23:54:30 +01:00
Cargo.toml Fixes keyword 2016-05-21 00:30:44 +01:00
LICENSE Adds some needed files 2016-05-20 23:33:08 +01:00
README.md Adds some needed files 2016-05-20 23:33:08 +01:00

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();