pub struct DeviceStatsCommand {
pub check: bool,
pub reset: bool,
pub tabular: bool,
pub offline: bool,
pub path: PathBuf,
}Expand description
Show device I/O error statistics for all devices of a filesystem
Reads per-device counters for write, read, flush, corruption, and generation errors. The path can be a mount point or a device belonging to the filesystem.
With –offline, reads stats directly from the on-disk device tree without requiring a mounted filesystem.
Fields§
§check: boolReturn a non-zero exit code if any error counter is greater than zero
reset: boolPrint current values and then atomically reset all counters to zero
tabular: boolShow stats in a tabular format with columns instead of per-device lines
offline: boolRead stats from the on-disk device tree (no mount required)
path: PathBufPath to a mounted btrfs filesystem or a device/image file
Trait Implementations§
Source§impl Args for DeviceStatsCommand
impl Args for DeviceStatsCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for DeviceStatsCommand
impl CommandFactory for DeviceStatsCommand
Source§impl Debug for DeviceStatsCommand
impl Debug for DeviceStatsCommand
Source§impl FromArgMatches for DeviceStatsCommand
impl FromArgMatches for DeviceStatsCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for DeviceStatsCommand
impl Parser for DeviceStatsCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl Runnable for DeviceStatsCommand
impl Runnable for DeviceStatsCommand
Auto Trait Implementations§
impl Freeze for DeviceStatsCommand
impl RefUnwindSafe for DeviceStatsCommand
impl Send for DeviceStatsCommand
impl Sync for DeviceStatsCommand
impl Unpin for DeviceStatsCommand
impl UnsafeUnpin for DeviceStatsCommand
impl UnwindSafe for DeviceStatsCommand
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