Struct fidl_fuchsia_fs_startup::StartOptions
source · pub struct StartOptions {
pub read_only: bool,
pub verbose: bool,
pub fsck_after_every_transaction: bool,
pub write_compression_algorithm: CompressionAlgorithm,
pub write_compression_level: i32,
pub cache_eviction_policy_override: EvictionPolicyOverride,
pub startup_profiling_seconds: u32,
}
Expand description
Options for starting a filesystem.
Fields§
§read_only: bool
Start the filesystem in read-only mode.
verbose: bool
Enable verbose logging.
fsck_after_every_transaction: bool
If true, run fsck after every transaction. This is for testing purposes only - it’s very slow to run a filesystem like this.
write_compression_algorithm: CompressionAlgorithm
A compression algorithm specifier for the filesystem to use when storing files (if the filesystem supports it). Defaults to ZSTD_CHUNKED.
write_compression_level: i32
An optional compression level for the filesystem to use when storing files (if the filesystem and the configured |write_compression_algorithm| supports it). Setting to < 0 indicates no value (the filesystem chooses a default if necessary).
cache_eviction_policy_override: EvictionPolicyOverride
An optional eviction policy specifier for the filesystem to use for in-memory structures (if the filesystem supports it), specifically for pager-backed files.
startup_profiling_seconds: u32
Set greater than zero to use profiling for the first N seconds after filesystem start. Records the access patterns of objects for N seconds and if the profile already exists, prefetch data and hold the vmos in cache for N seconds. Functionally this means that the first launch with this option records the profile and all other launches with this option will replay that profile. TODO(https://fxbug.dev/328071060): Enable profile recordings access and handling.
Trait Implementations§
source§impl Debug for StartOptions
impl Debug for StartOptions
source§impl Decode<StartOptions> for StartOptions
impl Decode<StartOptions> for StartOptions
source§impl Encode<StartOptions> for &mut StartOptions
impl Encode<StartOptions> for &mut StartOptions
source§impl<T0: Encode<bool>, T1: Encode<bool>, T2: Encode<bool>, T3: Encode<CompressionAlgorithm>, T4: Encode<i32>, T5: Encode<EvictionPolicyOverride>, T6: Encode<u32>> Encode<StartOptions> for (T0, T1, T2, T3, T4, T5, T6)
impl<T0: Encode<bool>, T1: Encode<bool>, T2: Encode<bool>, T3: Encode<CompressionAlgorithm>, T4: Encode<i32>, T5: Encode<EvictionPolicyOverride>, T6: Encode<u32>> Encode<StartOptions> for (T0, T1, T2, T3, T4, T5, T6)
source§impl Hash for StartOptions
impl Hash for StartOptions
source§impl Ord for StartOptions
impl Ord for StartOptions
source§fn cmp(&self, other: &StartOptions) -> Ordering
fn cmp(&self, other: &StartOptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for StartOptions
impl PartialEq for StartOptions
source§fn eq(&self, other: &StartOptions) -> bool
fn eq(&self, other: &StartOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StartOptions
impl PartialOrd for StartOptions
source§fn partial_cmp(&self, other: &StartOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &StartOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl ResourceTypeMarker for StartOptions
impl ResourceTypeMarker for StartOptions
§type Borrowed<'a> = &'a mut StartOptions
type Borrowed<'a> = &'a mut StartOptions
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).source§impl TypeMarker for StartOptions
impl TypeMarker for StartOptions
§type Owned = StartOptions
type Owned = StartOptions
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.