pub struct ListChunksCommand { /* private fields */ }Expand description
List all chunks in the filesystem, one row per stripe
Enumerates every chunk across all devices by walking the chunk tree. For striped profiles (RAID0, RAID10, RAID5, RAID6) each logical chunk maps to multiple stripes on different devices, so it appears on multiple rows. For DUP each logical chunk maps to two physical stripes on the same device, so it also appears twice. For single and non-striped profiles there is a 1:1 correspondence between logical chunks and rows.
Requires CAP_SYS_ADMIN.
Columns:
Devid: btrfs device ID the stripe lives on.
PNumber: physical chunk index on this device, ordered by physical start offset (1-based).
Type/profile: block-group type (data, metadata, system) and replication profile (single, dup, raid0, raid1, …).
PStart: physical byte offset of this stripe on the device.
Length: logical length of the chunk (shared by all its stripes).
PEnd: physical byte offset of the end of this stripe (PStart + Length).
LNumber: logical chunk index for this device, ordered by logical start offset (1-based); DUP stripes share the same value.
LStart: logical byte offset of the chunk in the filesystem address space.
Usage%: percentage of the chunk’s logical space currently occupied (used / length * 100), sourced from the extent tree.
Trait Implementations§
Source§impl Args for ListChunksCommand
impl Args for ListChunksCommand
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for ListChunksCommand
impl CommandFactory for ListChunksCommand
Source§impl Debug for ListChunksCommand
impl Debug for ListChunksCommand
Source§impl FromArgMatches for ListChunksCommand
impl FromArgMatches for ListChunksCommand
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>
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>
ArgMatches to self.