Uses old Rust 2015
0.1.0 |
|
---|
#5 in #lvm
115KB
2.5K
SLoC
MeLVin
A 100% Rust implementation of LVM and libdevmapper
Currently a big pile of pieces, someday this could be a nice library that provides a nice API to LVM that clients could use.
- parsing of metadata and lvm.conf
- locking
- dm ioctls
- lvmetad support (lvmetad required)
- no legacy support
Development status
ALPHA. Do not test on a system with data you care about, especially any APIs that write anything (i.e take &mut self
as an argument).
Documentation
API Documentation generated by rustdoc.
Example
use melvin::lvmetad;
let mut vgs = lvmetad::vgs_from_lvmetad().expect("could not get vgs from lvmetad");
let mut vg = vgs.pop().expect("no vgs in vgs");
println!("first vg name = {} uuid = {}", vg.name, vg.id);
How to contribute
GitHub used for pull requests and issue tracking
License
Dependencies
~3MB
~58K SLoC