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.
 

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: