A rust library to setup and control loopback devices
Find a file
Michael Daffin f96fcad1a4 Bumps the minimum tested version to 1.9.0
Newer versions of libc use the  attribute which is unstable in version 1.8.0 and 1.8.0 is very old now I would rather support newer versions of the included libraries
History 2017-12-04 17:15:38 +00: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 the minimum tested version to 1.9.0 2017-12-04 17:15:38 +00:00
Cargo.toml Fixes documentation link 2017-05-05 21:00:38 +01:00
LICENSE Adds some needed files 2016-05-20 23:33:08 +01:00
README.md Fixes documentation link 2017-05-05 21:00:38 +01:00

Build Status crates.io

loopdev

Setup and control loop devices.

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

Documentation

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