# loopdev **Repository Path**: overweight/loopdev ## Basic Information - **Project Name**: loopdev - **Description**: copy loopdev - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-07-14 - **Last Updated**: 2023-07-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/mdaffin/loopdev.svg?branch=master)](https://travis-ci.org/mdaffin/loopdev) # loopdev Setup and control loop devices. Provides rust interface with similar functionalty to the linux utility `losetup`. # Examples ```rust 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(); ```