DAOS API: daos_oclass_attr Struct Reference

| DAOS API (v2.1 - dev)

Loading...
Searching...
No Matches
daos_oclass_attr Struct Reference

`#include <daos_obj_class.h>`

## Data Fields
enum daos_obj_schema | ca_schema
enum daos_obj_resil | ca_resil
unsigned int | ca_resil_degree
unsigned int | ca_grp_nr
union { |
struct daos_rp_attr { |
unsigned int r_proto |
unsigned int r_num |
} rp
struct daos_ec_attr { |
unsigned short e_k |
unsigned short e_p |
unsigned int e_len |
} ec
} | u

## Detailed Description

Object class attributes

Definition at line 400 of file daos_obj_class.h.

## Field Documentation

## ◆ ca_grp_nr

unsigned int ca_grp_nr

Initial # redundancy group, unnecessary for some schemas

Definition at line 408 of file daos_obj_class.h.

## ◆ ca_resil

enum daos_obj_resil ca_resil

Resilience method, replication or erasure code

Definition at line 404 of file daos_obj_class.h.

## ◆ ca_resil_degree

unsigned int ca_resil_degree

reserved

Definition at line 406 of file daos_obj_class.h.

## ◆ ca_schema

enum daos_obj_schema ca_schema

reserved: object placement schema, used by placement algorithm

Definition at line 402 of file daos_obj_class.h.

## ◆ e_k

unsigned short e_k

number of data cells (k)

Definition at line 422 of file daos_obj_class.h.

## ◆ e_len

unsigned int e_len

length of each block of data (cell)

Definition at line 426 of file daos_obj_class.h.

## ◆ e_p

unsigned short e_p

number of parity cells (p)

Definition at line 424 of file daos_obj_class.h.

## ◆ r_num

unsigned int r_num

Number of replicas

Definition at line 416 of file daos_obj_class.h.

## ◆ r_proto

unsigned int r_proto

Protocol of replicating, reserved

Definition at line 414 of file daos_obj_class.h.

## ◆ [union]

union { ... } u

replication or erasure coding attributes based on ca_resil

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

- src/include/daos_obj_class.h