Struct ostree::RepoCheckoutAtOptions [−][src]
pub struct RepoCheckoutAtOptions {Show 14 fields
pub mode: RepoCheckoutMode,
pub overwrite_mode: RepoCheckoutOverwriteMode,
pub enable_uncompressed_cache: bool,
pub enable_fsync: bool,
pub process_whiteouts: bool,
pub no_copy_fallback: bool,
pub force_copy: bool,
pub bareuseronly_dirs: bool,
pub force_copy_zerosized: bool,
pub subpath: Option<PathBuf>,
pub devino_to_csum_cache: Option<RepoDevInoCache>,
pub filter: Option<RepoCheckoutFilter>,
pub sepolicy: Option<SePolicy>,
pub sepolicy_prefix: Option<String>,
}
Expand description
Options for checking out an OSTree commit.
Fields
mode: RepoCheckoutMode
Checkout mode.
overwrite_mode: RepoCheckoutOverwriteMode
Overwrite mode.
enable_uncompressed_cache: bool
Deprecated, do not use.
enable_fsync: bool
Perform fsync()
on checked out files and directories.
process_whiteouts: bool
Handle OCI/Docker style whiteout files.
no_copy_fallback: bool
Require hardlinking.
force_copy: bool
Never hardlink; reflink if possible, otherwise full physical copy.
bareuseronly_dirs: bool
Suppress mode bits outside of 0775 for directories.
force_copy_zerosized: bool
Copy zero-sized files rather than hardlinking.
subpath: Option<PathBuf>
Only check out this subpath.
devino_to_csum_cache: Option<RepoDevInoCache>
A cache from device, inode pairs to checksums.
filter: Option<RepoCheckoutFilter>
A callback function to decide which files and directories will be checked out from the repo. See the documentation on RepoCheckoutFilter for more information on the signature.
Panics
This callback may not panic. If it does, abort()
will be called to avoid unwinding across
an FFI boundary and into the libostree C code (which is Undefined Behavior). If you prefer to
swallow the panic rather than aborting, you can use std::panic::catch_unwind
inside your
callback to catch and silence any panics that occur.
sepolicy: Option<SePolicy>
SELinux policy.
sepolicy_prefix: Option<String>
When computing security contexts, prefix the path with this value.
Trait Implementations
type Storage = (Box<OstreeRepoCheckoutAtOptions>, Stash<'a, *const c_char, Option<PathBuf>>, Stash<'a, *const c_char, Option<String>>, Stash<'a, *mut OstreeRepoDevInoCache, Option<RepoDevInoCache>>, Stash<'a, *mut OstreeSePolicy, Option<SePolicy>>)
Transfer: none. Read more
Transfer: container. Read more
Transfer: full. Read more