pub struct MdArray {
pub name: String,
pub active: bool,
pub read_only: bool,
pub level: String,
pub members: Vec<MdMember>,
pub expected_devices: Option<u32>,
pub working_devices: Option<u32>,
pub sync: Option<MdSync>,
}Expand description
One Linux md array parsed from /proc/mdstat.
Fields§
§name: StringArray name (e.g. "md0").
active: boolWhether the array is active.
read_only: boolWhether the array is read-only (active (read-only) / (auto-read-only)).
level: StringRAID level (e.g. "raid1"); empty for inactive arrays.
members: Vec<MdMember>Member devices.
expected_devices: Option<u32>Number of devices the array should have ([n/m] -> n).
working_devices: Option<u32>Number of devices currently in sync ([n/m] -> m).
sync: Option<MdSync>Ongoing resync/recovery/reshape/check, if any.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MdArray
impl<'de> Deserialize<'de> for MdArray
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MdArray
impl RefUnwindSafe for MdArray
impl Send for MdArray
impl Sync for MdArray
impl Unpin for MdArray
impl UnsafeUnpin for MdArray
impl UnwindSafe for MdArray
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