Open CAS Framework
Open source framework of Cache Acceleration Software
Data Fields
ocf_mngt_cache_device_config Struct Reference

Cache attach configuration. More...

#include <ocf_mngt.h>

Data Fields

struct ocf_volume_uuid uuid
 Cache volume UUID.
 
uint8_t volume_type
 Cache volume type.
 
ocf_cache_line_size_t cache_line_size
 Cache line size.
 
bool open_cores
 Automatically open core volumes when loading cache. More...
 
bool force
 Ignore warnings and initialize new cache instance. More...
 
bool perform_test
 If set, cache features (like discard) are tested before starting cache.
 
bool discard_on_start
 If set, cache device will be discarded on cache start.
 
void * volume_params
 Optional opaque volume parameters, passed down to cache volume open callback.
 

Detailed Description

Cache attach configuration.

Field Documentation

◆ force

bool force

Ignore warnings and initialize new cache instance.

If set to true, it will force initializing new cache despite the existing metadata from previous cache instance.

Note
This flag is not allowed when loading existing cache instance.

◆ open_cores

bool open_cores

Automatically open core volumes when loading cache.

If set to false, cache load will not attempt to open core volumes, and so cores will be marked "inactive" unless their volumes were earlier added to the core pool. In such case user will be expected to add cores later using function ocf_mngt_cache_add_core().

Note
This option is meaningful only with ocf_mngt_cache_load(). When used with ocf_mngt_cache_attach() it's ignored.

The documentation for this struct was generated from the following file: