Struct nydus_api::config::RafsConfigV2
source · pub struct RafsConfigV2 {
pub mode: String,
pub batch_size: usize,
pub validate: bool,
pub enable_xattr: bool,
pub iostats_files: bool,
pub access_pattern: bool,
pub latest_read_files: bool,
pub prefetch: PrefetchConfigV2,
}Expand description
Configuration information for RAFS filesystem.
Fields§
§mode: StringFilesystem metadata cache mode.
batch_size: usizeBatch size to read data from storage cache layer.
validate: boolWhether to validate data digest.
enable_xattr: boolEnable support of extended attributes.
iostats_files: boolRecord file operation metrics for each file.
Better to keep it off in production environment due to possible resource consumption.
access_pattern: boolRecord filesystem access pattern.
latest_read_files: boolRecord file name if file access trace log.
prefetch: PrefetchConfigV2Filesystem prefetching configuration.
Implementations§
Trait Implementations§
source§impl Clone for RafsConfigV2
impl Clone for RafsConfigV2
source§fn clone(&self) -> RafsConfigV2
fn clone(&self) -> RafsConfigV2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RafsConfigV2
impl Debug for RafsConfigV2
source§impl Default for RafsConfigV2
impl Default for RafsConfigV2
source§fn default() -> RafsConfigV2
fn default() -> RafsConfigV2
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RafsConfigV2
impl<'de> Deserialize<'de> for RafsConfigV2
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<RafsConfigV2> for RafsConfigV2
impl PartialEq<RafsConfigV2> for RafsConfigV2
source§fn eq(&self, other: &RafsConfigV2) -> bool
fn eq(&self, other: &RafsConfigV2) -> bool
This method tests for
self and other values to be equal, and is used
by ==.