pub struct FilesystemDefragCommand {
pub recursive: bool,
pub flush: bool,
pub compress: Option<Option<CompressType>>,
pub compress_level: Option<i8>,
pub nocomp: bool,
pub start: Option<u64>,
pub len: Option<u64>,
pub target: Option<u64>,
pub step: Option<u64>,
pub paths: Vec<PathBuf>,
}Expand description
Defragment files or directories on a btrfs filesystem
Fields§
§recursive: boolDefragment files in subdirectories recursively
flush: boolFlush data to disk immediately after defragmentation
compress: Option<Option<CompressType>>Compress the file while defragmenting (optionally specify type: zlib, lzo, zstd)
compress_level: Option<i8>Compression level (used together with –compress)
nocomp: boolDisable compression during defragmentation
start: Option<u64>Defragment only bytes starting at this offset
len: Option<u64>Defragment only this many bytes
target: Option<u64>Target extent size threshold in bytes; extents larger than this are considered already defragmented
step: Option<u64>Process the file in steps of this size rather than all at once
paths: Vec<PathBuf>One or more files or directories to defragment
Trait Implementations§
Source§impl Args for FilesystemDefragCommand
impl Args for FilesystemDefragCommand
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 FilesystemDefragCommand
impl Debug for FilesystemDefragCommand
Source§impl FromArgMatches for FilesystemDefragCommand
impl FromArgMatches for FilesystemDefragCommand
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 FilesystemDefragCommand
impl Parser for FilesystemDefragCommand
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 FilesystemDefragCommand
impl RefUnwindSafe for FilesystemDefragCommand
impl Send for FilesystemDefragCommand
impl Sync for FilesystemDefragCommand
impl Unpin for FilesystemDefragCommand
impl UnsafeUnpin for FilesystemDefragCommand
impl UnwindSafe for FilesystemDefragCommand
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