10#define __DAOS_POOL_H__
12#if defined(__cplusplus)
61 uint64_t s_total[DAOS_MEDIA_MAX];
63 uint64_t s_free[DAOS_MEDIA_MAX];
68 daos_target_type_t ta_type;
69 daos_target_state_t ta_state;
79 uint64_t ps_free_min[DAOS_MEDIA_MAX];
81 uint64_t ps_free_max[DAOS_MEDIA_MAX];
83 uint64_t ps_free_mean[DAOS_MEDIA_MAX];
102 int32_t rs_padding32;
105 int32_t rs_fail_rank;
127enum daos_pool_info_bit {
129 DPI_SPACE = 1ULL << 0,
131 DPI_REBUILD_STATUS = 1ULL << 1,
163 char pci_label[DAOS_PROP_LABEL_MAX_LEN+1];
166#define DAOS_SYS_NAME_MAX_LEN 127
193daos_pool_connect(
const char *pool,
const char *sys,
unsigned int flags,
311daos_pool_query_target(
daos_handle_t poh, uint32_t tgt, d_rank_t rank,
332daos_pool_list_attr(
daos_handle_t poh,
char *buffer,
size_t *size,
354daos_pool_get_attr(
daos_handle_t poh,
int n,
char const *
const names[],
355 void *
const buffers[],
size_t sizes[],
daos_event_t *ev);
370daos_pool_set_attr(
daos_handle_t poh,
int n,
char const *
const names[],
371 void const *
const values[],
size_t const sizes[],
393daos_pool_del_attr(
daos_handle_t poh,
int n,
char const *
const names[],
422daos_pool_connect2(
const char *pool,
const char *sys,
unsigned int flags,
426#if defined(__cplusplus)
428#define daos_pool_connect daos_pool_connect_cpp
430daos_pool_connect_cpp(
const char *pool,
const char *sys,
unsigned int flags,
daos_handle_t *poh,
433 return daos_pool_connect2(pool, sys, flags, poh, info, ev);
437daos_pool_connect_cpp(
const uuid_t pool,
const char *sys,
unsigned int flags,
daos_handle_t *poh,
442 uuid_unparse(pool, str);
443 return daos_pool_connect2(str, sys, flags, poh, info, ev);
450#define daos_pool_connect(po, ...) \
454 const char *__str = NULL; \
455 if (d_is_string(po)) { \
456 __str = (const char *)(po); \
457 } else if (d_is_uuid(po)) { \
458 uuid_unparse((unsigned char *)(po), _str); \
461 _ret = daos_pool_connect2(__str, __VA_ARGS__); \
uint64_t rs_toberb_obj_nr