Loading...
Searching...
No Matches
spdk_reduce_vol_params Struct Reference

Describes the parameters of an spdk_reduce_vol. More...

#include <reduce.h>

Collaboration diagram for spdk_reduce_vol_params:

Data Fields

struct spdk_uuid uuid
 
uint32_t backing_io_unit_size
 Size in bytes of the IO unit for the backing device.
 
uint32_t logical_block_size
 Size in bytes of a logical block.
 
uint32_t chunk_size
 Size in bytes of a chunk on the compressed volume.
 
uint64_t vol_size
 Total size in bytes of the compressed volume.
 
uint32_t comp_level
 Compression algorithm, when creating initialization, it is specified by the user.
 
uint8_t comp_algo
 Compression algorithm, when creating initialization, it is specified by the user.
 
uint8_t reserved [2]
 
uint8_t meta_builtin
 
struct spdk_reduce_meta_desc meta_region_desc [REDUCE_MTYPE_NR]
 
uint64_t data_region_off
 

Detailed Description

Describes the parameters of an spdk_reduce_vol.

Field Documentation

◆ backing_io_unit_size

uint32_t spdk_reduce_vol_params::backing_io_unit_size

Size in bytes of the IO unit for the backing device.

This is the unit in which space is allocated from the backing device, and the unit in which data is read from of written to the backing device. Must be greater than 0.

◆ chunk_size

uint32_t spdk_reduce_vol_params::chunk_size

Size in bytes of a chunk on the compressed volume.

This is the unit in which data is compressed. Must be an even multiple of backing_io_unit_size and logical_block_size. Must be greater than 0.

◆ logical_block_size

uint32_t spdk_reduce_vol_params::logical_block_size

Size in bytes of a logical block.

This is the unit in which users read or write data to the compressed volume. Must be greater than 0.

◆ vol_size

uint64_t spdk_reduce_vol_params::vol_size

Total size in bytes of the compressed volume.

During initialization, the size is calculated from the size of backing device size, so this must be set to 0 in the structure passed to spdk_reduce_vol_init(). After initialization, or a successful load, this field will contain the total size which will be an even multiple of the chunk size.


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