pub struct ReflinkCloneCommand { /* private fields */ }Expand description
Lightweight file copy: data extents are shared between source and target instead of physically copied. Subsequent modifications are copy-on-write, so reading from the clone is fast and storage is only consumed once until the files diverge.
With no -r flags, the entire source file is cloned to the target (which is created or truncated as needed). With one or more -r RANGESPEC flags, only those byte ranges are cloned into the target at the specified destination offsets and the existing target contents outside those ranges are preserved.
RANGESPEC has three parts: SRCOFF:LENGTH:DESTOFF, where SRCOFF is the byte offset in the source file, LENGTH is the number of bytes (0 = up to end-of-source), and DESTOFF is the byte offset in the target file. All three values accept the size suffix k/m/g/t/p/e (case-insensitive). Offsets and length must be block-aligned (typically 4 KiB) except when the source range reaches end-of-file.
Trait Implementations§
Source§impl Args for ReflinkCloneCommand
impl Args for ReflinkCloneCommand
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 ReflinkCloneCommand
impl CommandFactory for ReflinkCloneCommand
Source§impl Debug for ReflinkCloneCommand
impl Debug for ReflinkCloneCommand
Source§impl FromArgMatches for ReflinkCloneCommand
impl FromArgMatches for ReflinkCloneCommand
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.