pub struct FlakeyTargetParams {
pub device: Device,
pub start_offset: Sectors,
pub up_interval: u32,
pub down_interval: u32,
pub feature_args: HashSet<FeatureArg>,
}Expand description
Target params for flakey target
Fields§
§device: DeviceThe device on which this segment resides
start_offset: SectorsThe starting offset of this segments in the device.
up_interval: u32Interval during which flakey target is up, in seconds DM source type is unsigned, so restrict to u32.
down_interval: u32Interval during which flakey target is down, in seconds DM source type is unsigned, so restrict to u32.
feature_args: HashSet<FeatureArg>Optional feature arguments
Implementations§
Trait Implementations§
Source§impl Clone for FlakeyTargetParams
impl Clone for FlakeyTargetParams
Source§fn clone(&self) -> FlakeyTargetParams
fn clone(&self) -> FlakeyTargetParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlakeyTargetParams
impl Debug for FlakeyTargetParams
Source§impl Display for FlakeyTargetParams
impl Display for FlakeyTargetParams
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Generate params to be passed to DM. The format of the params is:
<dev path> <offset> <up interval> <down interval> [<num_features> [<feature arguments>]]Mandatory parameters:
<dev path>: Full pathname to the underlying block-device, or a “major:minor” device-number.<offset>: Starting sector within the device.<up interval>: Number of seconds device is available.<down interval>: 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.
Source§impl FromStr for FlakeyTargetParams
impl FromStr for FlakeyTargetParams
Source§impl PartialEq for FlakeyTargetParams
impl PartialEq for FlakeyTargetParams
Source§impl TargetParams for FlakeyTargetParams
impl TargetParams for FlakeyTargetParams
Source§fn target_type(&self) -> TargetTypeBuf
fn target_type(&self) -> TargetTypeBuf
Return the target type
impl Eq for FlakeyTargetParams
impl StructuralPartialEq for FlakeyTargetParams
Auto Trait Implementations§
impl Freeze for FlakeyTargetParams
impl RefUnwindSafe for FlakeyTargetParams
impl Send for FlakeyTargetParams
impl Sync for FlakeyTargetParams
impl Unpin for FlakeyTargetParams
impl UnwindSafe for FlakeyTargetParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more