pub struct BtrfsFilesystem {
pub fsid: String,
pub label: String,
pub mount_points: Vec<String>,
pub devices: Vec<String>,
pub device_stats: Vec<BtrfsDeviceStats>,
pub allocations: Vec<BtrfsAllocation>,
pub scrub: Option<BtrfsScrub>,
}Expand description
A btrfs filesystem as seen in /sys/fs/btrfs/<fsid>.
Fields§
§fsid: StringFilesystem UUID.
label: StringFilesystem label (may be empty).
mount_points: Vec<String>Mount points found in the mount table for this filesystem.
devices: Vec<String>Member block devices (e.g. "nvme0n1", "nvme1n1p1").
device_stats: Vec<BtrfsDeviceStats>Per-device error counters, keyed by btrfs device id. Each carries its
device name when it could be looked up (see BtrfsDeviceStats::name);
the list is not aligned with devices.
allocations: Vec<BtrfsAllocation>Allocation per block group type (data, metadata, system).
scrub: Option<BtrfsScrub>Result of the most recent scrub, if it is known. Error counters in
device_stats only grow when data is read, so the scrub time tells
when all data was last verified.
Implementations§
Source§impl BtrfsFilesystem
impl BtrfsFilesystem
Sourcepub fn has_problems(&self) -> bool
pub fn has_problems(&self) -> bool
Returns true if any member is missing or has a non-zero error counter.
Trait Implementations§
Source§impl Clone for BtrfsFilesystem
impl Clone for BtrfsFilesystem
Source§impl Debug for BtrfsFilesystem
impl Debug for BtrfsFilesystem
Source§impl Default for BtrfsFilesystem
impl Default for BtrfsFilesystem
Source§impl<'de> Deserialize<'de> for BtrfsFilesystemwhere
BtrfsFilesystem: Default,
impl<'de> Deserialize<'de> for BtrfsFilesystemwhere
BtrfsFilesystem: Default,
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 BtrfsFilesystem
impl RefUnwindSafe for BtrfsFilesystem
impl Send for BtrfsFilesystem
impl Sync for BtrfsFilesystem
impl Unpin for BtrfsFilesystem
impl UnsafeUnpin for BtrfsFilesystem
impl UnwindSafe for BtrfsFilesystem
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