pub struct RaidProfile {
pub sub_stripes: u32,
pub dev_stripes: u32,
pub devs_max: u32,
pub devs_min: u32,
pub tolerated_failures: u32,
pub devs_increment: u32,
pub ncopies: u32,
pub nparity: u32,
pub mindev_error: u32,
pub lower_name: &'static str,
pub upper_name: &'static str,
pub bg_flag: u64,
}Expand description
Structure containing information concerning a btrfs block group profile
More information about btrfs RAID profiles can be found at btrfs.readthedocs.io.
From<u64> will convert raw flags from super::SpaceInfo::flags to the corresponding
RaidProfile
Fields§
§sub_stripes: u32§dev_stripes: u32§devs_max: u32§devs_min: u32§tolerated_failures: u32§devs_increment: u32§ncopies: u32§nparity: u32§mindev_error: u32§lower_name: &'static str§upper_name: &'static str§bg_flag: u64Trait Implementations§
Source§impl Clone for RaidProfile
impl Clone for RaidProfile
Source§fn clone(&self) -> RaidProfile
fn clone(&self) -> RaidProfile
Returns a duplicate 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 RaidProfile
impl Debug for RaidProfile
Source§impl TryFrom<u64> for RaidProfile
Converts raw flags to the corresponding raid profile
impl TryFrom<u64> for RaidProfile
Converts raw flags to the corresponding raid profile
impl Copy for RaidProfile
Auto Trait Implementations§
impl Freeze for RaidProfile
impl RefUnwindSafe for RaidProfile
impl Send for RaidProfile
impl Sync for RaidProfile
impl Unpin for RaidProfile
impl UnwindSafe for RaidProfile
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