pub struct DeviceUsageCommand {
pub paths: Vec<PathBuf>,
pub raw: bool,
pub human_readable: bool,
pub human_base1000: bool,
pub iec: bool,
pub si: bool,
pub kbytes: bool,
pub mbytes: bool,
pub gbytes: bool,
pub tbytes: bool,
}Expand description
Show detailed information about internal allocations in devices
For each device, prints the total device size, the “slack” (difference between the physical block device size and the size btrfs uses), per-profile chunk allocations (Data, Metadata, System), and unallocated space. Requires CAP_SYS_ADMIN for the chunk tree walk.
Fields§
§paths: Vec<PathBuf>Path(s) to a mounted btrfs filesystem
raw: boolShow raw numbers in bytes
human_readable: boolShow human-friendly numbers using base 1024 (default)
human_base1000: boolShow human-friendly numbers using base 1000
iec: boolUse 1024 as a base (KiB, MiB, GiB, TiB)
si: boolUse 1000 as a base (kB, MB, GB, TB)
kbytes: boolShow sizes in KiB, or kB with –si
mbytes: boolShow sizes in MiB, or MB with –si
gbytes: boolShow sizes in GiB, or GB with –si
tbytes: boolShow sizes in TiB, or TB with –si
Trait Implementations§
Source§impl Args for DeviceUsageCommand
impl Args for DeviceUsageCommand
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 DeviceUsageCommand
impl CommandFactory for DeviceUsageCommand
Source§impl Debug for DeviceUsageCommand
impl Debug for DeviceUsageCommand
Source§impl FromArgMatches for DeviceUsageCommand
impl FromArgMatches for DeviceUsageCommand
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 DeviceUsageCommand
impl Parser for DeviceUsageCommand
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 DeviceUsageCommand
impl Runnable for DeviceUsageCommand
Auto Trait Implementations§
impl Freeze for DeviceUsageCommand
impl RefUnwindSafe for DeviceUsageCommand
impl Send for DeviceUsageCommand
impl Sync for DeviceUsageCommand
impl Unpin for DeviceUsageCommand
impl UnsafeUnpin for DeviceUsageCommand
impl UnwindSafe for DeviceUsageCommand
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