A rust library to setup and control loopback devices
Find a file
History 2017-12-05 14:11:33 +00:00
losetup Bumps version of losetup 2017-12-05 14:11:33 +00:00
src Changes the global statics to consts 2017-12-05 10:23:17 +00:00
.gitignore Changes the global statics to consts 2017-12-05 10:23:17 +00:00
.travis.yml Removes doc building and adds building losetup to travis 2017-12-05 13:59:27 +00:00
Cargo.toml Bumps the version to 0.1.3 2017-12-05 14:05:16 +00: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();