Crate mdconfig

Source
Expand description

Rust bindings to FreeBSD’s md(4) driver.

md devices are memory disks, that can be backed by RAM, swap, or a file. They can be useful for temporary storage, and they’re very useful for working with disk images as files. This crate provides bindings to md that are equivalent to what the mdconfig(8) utility provides, but Rustier.

The main entry point is the Builder struct. Use it to construct an Md device which will automatically destroy itself when dropped.

Structs§

Builder
Used to construct a new Md device.
Md
Represents a device like /dev/md0, and automatically destroys it on Drop.