10#define __DAOS_POOL_H__
12#define daos_pool_connect daos_pool_connect2
14#if defined(__cplusplus)
61enum daos_media_type_t {
103enum daos_rebuild_state_t {
156enum daos_pool_info_bit {
158 DPI_SPACE = 1ULL << 0,
160 DPI_REBUILD_STATUS = 1ULL << 1,
162 DPI_ENGINES_ENABLED = 1ULL << 2,
164 DPI_ENGINES_DISABLED = 1ULL << 3,
238daos_pool_connect(
const char *pool,
const char *sys,
unsigned int flags,
361daos_pool_query_target(
daos_handle_t poh, uint32_t tgt, d_rank_t rank,
382daos_pool_list_attr(
daos_handle_t poh,
char *buffer,
size_t *size,
404daos_pool_get_attr(
daos_handle_t poh,
int n,
char const *
const names[],
405 void *
const buffers[],
size_t sizes[],
daos_event_t *ev);
420daos_pool_set_attr(
daos_handle_t poh,
int n,
char const *
const names[],
421 void const *
const values[],
size_t const sizes[],
443daos_pool_del_attr(
daos_handle_t poh,
int n,
char const *
const names[],
468enum daos_pool_cont_filter_func {
486static inline const char *
487daos_pool_cont_filter_func_str(
enum daos_pool_cont_filter_func f)
508enum daos_pool_cont_filter_key {
510 PCF_KEY_MD_OTIME = 0,
514 PCF_KEY_NUM_SNAPSHOTS,
521static inline const char *
522daos_pool_cont_filter_key_str(
enum daos_pool_cont_filter_key k)
525 case PCF_KEY_MD_OTIME:
526 return "md_open_time";
527 case PCF_KEY_MD_MTIME:
528 return "md_modify_time";
529 case PCF_KEY_NUM_SNAPSHOTS:
530 return "num_snapshots";
531 case PCF_KEY_NUM_HANDLES:
532 return "num_handles";
549 d_string_t pcfp_valstr;
554enum daos_pool_cont_filter_combine {
556 PCF_COMBINE_LOGICAL_AND = 0,
558 PCF_COMBINE_LOGICAL_OR,
572#define DAOS_POOL_CONT_FILTER_MAX_NPARTS (8)
633daos_pool_get_perms(
daos_prop_t *pool_prop, uid_t uid, gid_t *gids,
size_t nr_gids,
636#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