Trait devicemapper::DmDevice [] [src]

pub trait DmDevice<T: TargetTable> {
    fn device(&self) -> Device;
fn devnode(&self) -> PathBuf;
fn equivalent_tables(left: &T, right: &T) -> DmResult<bool>;
fn name(&self) -> &DmName;
fn size(&self) -> Sectors;
fn table(&self) -> &T;
fn teardown(self, dm: &DM) -> DmResult<()>;
fn uuid(&self) -> Option<&DmUuid>; fn load_table(dm: &DM, id: &DevId) -> DmResult<T> { ... }
fn resume(&mut self, dm: &DM) -> DmResult<()> { ... }
fn suspend(&mut self, dm: &DM) -> DmResult<()> { ... }
fn table_load(&self, dm: &DM, table: &T) -> DmResult<()> { ... } }

A trait capturing some shared properties of DM devices.

Required Methods

The device.

The device's device node.

Check if tables indicate an equivalent device.

The device's name.

The number of sectors available for user data.

What the device thinks its table is.

Erase the kernel's memory of this device.

The device's UUID, if available. Note that the UUID is not any standard UUID format.

Provided Methods

The devicemapper table

Resume I/O on the device.

Suspend I/O on the device.

Load a table

Implementors