[−][src]Trait devicemapper::DmDevice
A trait capturing some shared properties of DM devices.
Required methods
fn device(&self) -> Device
The device.
fn devnode(&self) -> PathBuf
The device's device node.
fn equivalent_tables(left: &T, right: &T) -> DmResult<bool>
Check if tables indicate an equivalent device.
fn name(&self) -> &DmName
The device's name.
fn size(&self) -> Sectors
The number of sectors available for user data.
fn table(&self) -> &T
What the device thinks its table is.
fn teardown(&mut self, dm: &DM) -> DmResult<()>
Erase the kernel's memory of this device.
fn uuid(&self) -> Option<&DmUuid>
The device's UUID, if available. Note that the UUID is not any standard UUID format.
Provided methods
fn read_kernel_table(dm: &DM, id: &DevId) -> DmResult<T>
Read the devicemapper table
fn resume(&mut self, dm: &DM) -> DmResult<()>
Resume I/O on the device.
fn suspend(&mut self, dm: &DM, flush: bool) -> DmResult<()>
Suspend I/O on the device. If flush is true, flush the device first.
fn table_load(&self, dm: &DM, table: &T) -> DmResult<()>
Load a table
Implementors
impl DmDevice<LinearDevTargetTable> for LinearDev
[src]
fn device(&self) -> Device
[src]
fn devnode(&self) -> PathBuf
[src]
fn equivalent_tables(
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>
[src]
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>