pub struct RescueFixDeviceSizeCommand { /* private fields */ }Expand description
Re-align device and super block sizes
Recomputes each device’s total_bytes from its physical size and
the device extent layout, updates the corresponding DEV_ITEM in
the chunk tree (and the embedded dev_item in the superblock),
and rewrites the superblock’s total_bytes to match the sum.
Cases handled:
dev_item.total_bytesis misaligned tosectorsize: round it down.dev_item.total_bytesis larger than the underlying block device or backing file: shrink it to the actual size, but only if noDEV_EXTENTcovers or extends past that boundary (otherwise we’d lose data).
The device must not be mounted.
Trait Implementations§
Source§impl Args for RescueFixDeviceSizeCommand
impl Args for RescueFixDeviceSizeCommand
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 Debug for RescueFixDeviceSizeCommand
impl Debug for RescueFixDeviceSizeCommand
Source§impl FromArgMatches for RescueFixDeviceSizeCommand
impl FromArgMatches for RescueFixDeviceSizeCommand
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 RescueFixDeviceSizeCommand
impl Parser for RescueFixDeviceSizeCommand
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)
Auto Trait Implementations§
impl Freeze for RescueFixDeviceSizeCommand
impl RefUnwindSafe for RescueFixDeviceSizeCommand
impl Send for RescueFixDeviceSizeCommand
impl Sync for RescueFixDeviceSizeCommand
impl Unpin for RescueFixDeviceSizeCommand
impl UnsafeUnpin for RescueFixDeviceSizeCommand
impl UnwindSafe for RescueFixDeviceSizeCommand
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