pub struct SubvolumeDeleteCommand {
pub commit_after: bool,
pub commit_each: bool,
pub subvolid: Option<u64>,
pub recursive: bool,
pub paths: Vec<PathBuf>,
}Expand description
Delete one or more subvolumes or snapshots.
Delete subvolumes from the filesystem, specified by path or id. The corresponding directory is removed instantly but the data blocks are removed later.
The deletion does not involve full commit by default due to performance reasons (as a consequence, the subvolume may appear again after a crash). Use one of the –commit options to wait until the operation is safely stored on the media.
Fields§
§commit_after: boolWait for transaction commit at the end of the operation
commit_each: boolWait for transaction commit after deleting each subvolume
subvolid: Option<u64>Delete by subvolume ID instead of path. When used, exactly one positional argument is expected: the filesystem path (mount point).
recursive: boolDelete accessible subvolumes beneath each subvolume recursively. This is not atomic and may need root to delete subvolumes not accessible by the user.
paths: Vec<PathBuf>Subvolume paths to delete, or (with –subvolid) the filesystem path
Trait Implementations§
Source§impl Args for SubvolumeDeleteCommand
impl Args for SubvolumeDeleteCommand
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 Debug for SubvolumeDeleteCommand
impl Debug for SubvolumeDeleteCommand
Source§impl FromArgMatches for SubvolumeDeleteCommand
impl FromArgMatches for SubvolumeDeleteCommand
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.