Struct devicemapper::FlakeyTargetParams [−][src]
pub struct FlakeyTargetParams { pub device: Device, pub start_offset: Sectors, pub up_interval: u32, pub down_interval: u32, pub feature_args: HashSet<String>, }
Target params for flakey target
Fields
device: Device
The device on which this segment resides
start_offset: Sectors
The starting offset of this segments in the device.
up_interval: u32
Interval during which flakey target is up, in seconds DM source type is unsigned, so restrict to u32.
down_interval: u32
Interval during which flakey target is down, in seconds DM source type is unsigned, so restrict to u32.
feature_args: HashSet<String>
Optional feature arguments
Methods
impl FlakeyTargetParams
[src]
impl FlakeyTargetParams
pub fn new(
device: Device,
start_offset: Sectors,
up_interval: u32,
down_interval: u32,
feature_args: Vec<String>
) -> FlakeyTargetParams
[src]
pub fn new(
device: Device,
start_offset: Sectors,
up_interval: u32,
down_interval: u32,
feature_args: Vec<String>
) -> FlakeyTargetParams
Create a new flakey target param struct.
Trait Implementations
impl Clone for FlakeyTargetParams
[src]
impl Clone for FlakeyTargetParams
fn clone(&self) -> FlakeyTargetParams
[src]
fn clone(&self) -> FlakeyTargetParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for FlakeyTargetParams
[src]
impl Debug for FlakeyTargetParams
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FlakeyTargetParams
[src]
impl Eq for FlakeyTargetParams
impl PartialEq for FlakeyTargetParams
[src]
impl PartialEq for FlakeyTargetParams
fn eq(&self, other: &FlakeyTargetParams) -> bool
[src]
fn eq(&self, other: &FlakeyTargetParams) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FlakeyTargetParams) -> bool
[src]
fn ne(&self, other: &FlakeyTargetParams) -> bool
This method tests for !=
.
impl Display for FlakeyTargetParams
[src]
impl Display for FlakeyTargetParams
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Generate params to be passed to DM. The format of the params is:
[<num_features> [
Table parameters
[<num_features> [
Mandatory parameters:
Optional feature parameters: If no feature parameters are present, during the periods of unreliability, all I/O returns errors.
drop_writes:
All write I/O is silently ignored. Read I/O is handled correctly.
corrupt_bio_byte <Nth_byte>
During
<Nth_byte>: The offset of the byte to replace.
Counting starts at 1, to replace the first byte.
impl FromStr for FlakeyTargetParams
[src]
impl FromStr for FlakeyTargetParams
Auto Trait Implementations
impl Send for FlakeyTargetParams
impl Send for FlakeyTargetParams
impl Sync for FlakeyTargetParams
impl Sync for FlakeyTargetParams