10#define __DAOS_POOL_H__
12#define daos_pool_connect daos_pool_connect2
14#if defined(__cplusplus)
56enum daos_media_type_t {
98enum daos_rebuild_state_t {
151enum daos_pool_info_bit {
153 DPI_SPACE = 1ULL << 0,
155 DPI_REBUILD_STATUS = 1ULL << 1,
159 DPI_ENGINES_ENABLED = 1ULL << 2,
208#define DAOS_SYS_NAME_MAX_LEN 127
235daos_pool_connect(
const char *pool,
const char *sys,
unsigned int flags,
358daos_pool_query_target(
daos_handle_t poh, uint32_t tgt, d_rank_t rank,
379daos_pool_list_attr(
daos_handle_t poh,
char *buffer,
size_t *size,
401daos_pool_get_attr(
daos_handle_t poh,
int n,
char const *
const names[],
402 void *
const buffers[],
size_t sizes[],
daos_event_t *ev);
417daos_pool_set_attr(
daos_handle_t poh,
int n,
char const *
const names[],
418 void const *
const values[],
size_t const sizes[],
440daos_pool_del_attr(
daos_handle_t poh,
int n,
char const *
const names[],
465enum daos_pool_cont_filter_func {
483static inline const char *
484daos_pool_cont_filter_func_str(
enum daos_pool_cont_filter_func f)
505enum daos_pool_cont_filter_key {
507 PCF_KEY_MD_OTIME = 0,
511 PCF_KEY_NUM_SNAPSHOTS,
518static inline const char *
519daos_pool_cont_filter_key_str(
enum daos_pool_cont_filter_key k)
522 case PCF_KEY_MD_OTIME:
523 return "md_open_time";
524 case PCF_KEY_MD_MTIME:
525 return "md_modify_time";
526 case PCF_KEY_NUM_SNAPSHOTS:
527 return "num_snapshots";
528 case PCF_KEY_NUM_HANDLES:
529 return "num_handles";
546 d_string_t pcfp_valstr;
551enum daos_pool_cont_filter_combine {
553 PCF_COMBINE_LOGICAL_AND = 0,
555 PCF_COMBINE_LOGICAL_OR,
569#define DAOS_POOL_CONT_FILTER_MAX_NPARTS (8)
630daos_pool_get_perms(
daos_prop_t *pool_prop, uid_t uid, gid_t *gids,
size_t nr_gids,
633#if defined(__cplusplus)
struct daos_pool_cont_filter_part ** pcf_parts
uint32_t pcf_combine_func
daos_cont_info_t pci_cinfo
struct daos_pool_cont_info pci_id
char pci_label[DAOS_PROP_LABEL_MAX_LEN+1]
struct daos_space ps_space
uint64_t ps_free_max[DAOS_MEDIA_MAX]
uint64_t ps_free_mean[DAOS_MEDIA_MAX]
uint64_t ps_free_min[DAOS_MEDIA_MAX]
uint64_t rs_toberb_obj_nr
uint64_t s_total[DAOS_MEDIA_MAX]
uint64_t s_free[DAOS_MEDIA_MAX]
daos_target_type_t ta_type
daos_target_perf_t ta_perf
daos_target_state_t ta_state