Skip to content

A rust library to setup and control loopback devices

License

Notifications You must be signed in to change notification settings

AndroidPatch/loopdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A rust library to setup and control loopback devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.8%
  • Shell 1.2%