melvin

Crates.iomelvin
lib.rsmelvin
version0.1.0
sourcesrc
created_at2015-08-13 22:57:30.25927
updated_at2015-12-11 23:54:10.497015
descriptionA library for configuring LVM
homepage
repositoryhttps://github.com/agrover/melvin
max_upload_size
id2835
size131,480
Andy Grover (agrover)

documentation

http://agrover.github.io/melvin/doc/melvin/index.html

README

Build Status

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

Mozilla Public License 2.0

Commit count: 234

cargo fmt