pub struct DevStats {
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§
Trait Implementations§
impl Copy for DevStats
impl Eq for DevStats
impl StructuralPartialEq for DevStats
Auto Trait Implementations§
impl Freeze for DevStats
impl RefUnwindSafe for DevStats
impl Send for DevStats
impl Sync for DevStats
impl Unpin for DevStats
impl UnsafeUnpin for DevStats
impl UnwindSafe for DevStats
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