A rust library to setup and control loopback devices
Find a file
History 2017-05-04 23:11:38 +01:00
losetup Converts losetup to use clap 2017-05-04 23:03:09 +01:00
src Moves losetup to a subcrate 2017-04-30 19:27:20 +01:00
.gitignore Moves losetup to a subcrate 2017-04-30 19:27:20 +01:00
.travis.yml Bumps minimum rust version to 1.8.0 and package version to 0.1.1 2017-04-03 23:10:49 +01:00
Cargo.toml Moves losetup to a subcrate 2017-04-30 19:27:20 +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();