pub struct DeviceStats {
pub devid: u64,
pub write_errs: u64,
pub read_errs: u64,
pub flush_errs: u64,
pub corruption_errs: u64,
pub generation_errs: u64,
}Expand description
Per-device I/O error statistics, as returned by BTRFS_IOC_GET_DEV_STATS.
Fields§
§devid: u64Device ID these stats belong to.
write_errs: u64Number of write I/O errors (EIO/EREMOTEIO from lower layers).
read_errs: u64Number of read I/O errors (EIO/EREMOTEIO from lower layers).
flush_errs: u64Number of flush I/O errors (EIO/EREMOTEIO from lower layers).
corruption_errs: u64Number of checksum or bytenr corruption errors detected on read.
generation_errs: u64Number of generation errors (blocks not written where expected).
Implementations§
Source§impl DeviceStats
impl DeviceStats
Trait Implementations§
Source§impl Clone for DeviceStats
impl Clone for DeviceStats
Source§fn clone(&self) -> DeviceStats
fn clone(&self) -> DeviceStats
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 DeviceStats
impl Debug for DeviceStats
Source§impl Default for DeviceStats
impl Default for DeviceStats
Source§fn default() -> DeviceStats
fn default() -> DeviceStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeviceStats
impl PartialEq for DeviceStats
impl Copy for DeviceStats
impl Eq for DeviceStats
impl StructuralPartialEq for DeviceStats
Auto Trait Implementations§
impl Freeze for DeviceStats
impl RefUnwindSafe for DeviceStats
impl Send for DeviceStats
impl Sync for DeviceStats
impl Unpin for DeviceStats
impl UnsafeUnpin for DeviceStats
impl UnwindSafe for DeviceStats
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