Registry / other / loopdev-3

loopdev-3

JSON →
library0.5.3rscratesunverified

Setup and control loop devices on Linux.

# Cargo.toml [dependencies] loopdev-3 = "0.5.3"
INSTALL
IMPORT
SIG · LOOPDEV-3
L
loopdev-3
otherrustv0.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LoopDevice
use loopdev_3::LoopDevice;

Create and open a loop device.

use loopdev_3::LoopDevice; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut ld = LoopDevice::new()?; ld.open()?; println!("Loop device: {:?}", ld.path()); Ok(()) }
Debug
Known issues
gotchaRequires root or appropriate permissions to create loop devices.
fix
Run with sudo or ensure user has CAP_SYS_ADMIN.
affects: *
Upgrade
Version history
0.5.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
loopdev-3 — cargo add loopdev-3 · libregistry