Struct devicemapper::LinearDevTargetTable
[−]
[src]
pub struct LinearDevTargetTable {
pub table: Vec<TargetLine<LinearDevTargetParams>>,
}A target table for a linear device. Such a table allows flakey targets as well as linear targets.
Fields
table: Vec<TargetLine<LinearDevTargetParams>>
The device's table
Methods
impl LinearDevTargetTable[src]
pub fn new(
table: Vec<TargetLine<LinearDevTargetParams>>
) -> LinearDevTargetTable[src]
table: Vec<TargetLine<LinearDevTargetParams>>
) -> LinearDevTargetTable
Make a new LinearDevTargetTable from a suitable vec
Trait Implementations
impl Clone for LinearDevTargetTable[src]
fn clone(&self) -> LinearDevTargetTable[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for LinearDevTargetTable[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for LinearDevTargetTable[src]
impl PartialEq for LinearDevTargetTable[src]
fn eq(&self, __arg_0: &LinearDevTargetTable) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LinearDevTargetTable) -> bool[src]
This method tests for !=.
impl DmDevice<LinearDevTargetTable> for LinearDev[src]
fn device(&self) -> Device[src]
The device.
fn devnode(&self) -> PathBuf[src]
The device's device node.
fn equivalent_tables(
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>[src]
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>
Check if tables indicate an equivalent device.
fn name(&self) -> &DmName[src]
The device's name.
fn size(&self) -> Sectors[src]
The number of sectors available for user data.
fn table(&self) -> &LinearDevTargetTable[src]
What the device thinks its table is.
fn teardown(self, dm: &DM) -> DmResult<()>[src]
Erase the kernel's memory of this device.
fn uuid(&self) -> Option<&DmUuid>[src]
The device's UUID, if available. Note that the UUID is not any standard UUID format. Read more
fn read_kernel_table(dm: &DM, id: &DevId) -> DmResult<T>[src]
Read the devicemapper table
fn resume(&mut self, dm: &DM) -> DmResult<()>[src]
Resume I/O on the device.
fn suspend(&mut self, dm: &DM, flush: bool) -> DmResult<()>[src]
Suspend I/O on the device. If flush is true, flush the device first.
fn table_load(&self, dm: &DM, table: &T) -> DmResult<()>[src]
Load a table