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

The device on which this segment resides

The starting offset of this segments in the device.

Interval during which flakey target is up, in seconds DM source type is unsigned, so restrict to u32.

Interval during which flakey target is down, in seconds DM source type is unsigned, so restrict to u32.

Optional feature arguments

Methods

impl FlakeyTargetParams
[src]

Create a new flakey target param struct.

Trait Implementations

impl Clone for FlakeyTargetParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FlakeyTargetParams
[src]

Formats the value using the given formatter. Read more

impl Eq for FlakeyTargetParams
[src]

impl PartialEq for FlakeyTargetParams
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for FlakeyTargetParams
[src]

Generate params to be passed to DM. The format of the params is:
[<num_features> []]

Table parameters


[<num_features> []]

Mandatory parameters: : Full pathname to the underlying block-device, or a "major:minor" device-number. : Starting sector within the device. : Number of seconds device is available. : Number of seconds device returns errors.

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 , replace <Nth_byte> of the data of each matching bio with .

<Nth_byte>: The offset of the byte to replace. Counting starts at 1, to replace the first byte. : Either 'r' to corrupt reads or 'w' to corrupt writes. 'w' is incompatible with drop_writes. : The value (from 0-255) to write. : Perform the replacement only if bio->bi_opf has all the selected flags set.

impl FromStr for FlakeyTargetParams
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations