struct Args {Show 14 fields
from_file: bool,
print_digest: bool,
print_digest_only: bool,
use_epoch: bool,
skip_devices: bool,
skip_xattrs: bool,
user_xattrs: bool,
min_version: u32,
max_version: u32,
digest_store: Option<PathBuf>,
hardlinks: bool,
threads: Option<usize>,
source: PathBuf,
image: Option<PathBuf>,
}Expand description
Create a composefs image from a source directory or dumpfile.
Composefs uses EROFS image files for metadata and separate content-addressed backing directories for regular file data.
Fields§
§from_file: boolTreat SOURCE as a dumpfile in composefs-dump(5) format.
If SOURCE is -, reads from stdin.
print_digest: boolPrint the fsverity digest of the image after writing.
print_digest_only: boolPrint the fsverity digest without writing the image.
When set, IMAGE must be omitted.
use_epoch: boolSet modification time to zero (Unix epoch) for all files.
skip_devices: boolExclude device nodes from the image.
skip_xattrs: boolExclude all extended attributes.
user_xattrs: boolOnly include xattrs with the user. prefix.
min_version: u32Minimum image format version to use (0 or 1).
max_version: u32Maximum image format version (for auto-upgrade).
digest_store: Option<PathBuf>Copy regular file content to the given object store directory.
Files are stored by their fsverity digest using the same flat layout
as C mkcomposefs: XX/DIGEST where XX is the first byte of the digest.
The directory is created if it doesn’t exist. The layout is compatible
with digest stores written by the C mkcomposefs tool.
hardlinks: boolDeduplicate hard-linked files on the source filesystem into shared EROFS inodes. Without this flag the output is bit-for-bit compatible with the C mkcomposefs tool.
threads: Option<usize>Number of threads to use for digest calculation and file copying.
source: PathBufThe source directory or dumpfile.
image: Option<PathBuf>The output image path (use - for stdout).
Must be omitted when using –print-digest-only.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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 FromArgMatches for Args
impl FromArgMatches for Args
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.Source§impl Parser for Args
impl Parser for Args
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more