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,
166 DPI_ENGINES_DEAD = 1ULL << 4,
240daos_pool_connect(
const char *pool,
const char *sys,
unsigned int flags,
363daos_pool_query_target(
daos_handle_t poh, uint32_t tgt, d_rank_t rank,
384daos_pool_list_attr(
daos_handle_t poh,
char *buffer,
size_t *size,
406daos_pool_get_attr(
daos_handle_t poh,
int n,
char const *
const names[],
407 void *
const buffers[],
size_t sizes[],
daos_event_t *ev);
422daos_pool_set_attr(
daos_handle_t poh,
int n,
char const *
const names[],
423 void const *
const values[],
size_t const sizes[],
445daos_pool_del_attr(
daos_handle_t poh,
int n,
char const *
const names[],
470enum daos_pool_cont_filter_func {
488static inline const char *
489daos_pool_cont_filter_func_str(
enum daos_pool_cont_filter_func f)
510enum daos_pool_cont_filter_key {
512 PCF_KEY_MD_OTIME = 0,
516 PCF_KEY_NUM_SNAPSHOTS,
523static inline const char *
524daos_pool_cont_filter_key_str(
enum daos_pool_cont_filter_key k)
527 case PCF_KEY_MD_OTIME:
528 return "md_open_time";
529 case PCF_KEY_MD_MTIME:
530 return "md_modify_time";
531 case PCF_KEY_NUM_SNAPSHOTS:
532 return "num_snapshots";
533 case PCF_KEY_NUM_HANDLES:
534 return "num_handles";
551 d_string_t pcfp_valstr;
556enum daos_pool_cont_filter_combine {
558 PCF_COMBINE_LOGICAL_AND = 0,
560 PCF_COMBINE_LOGICAL_OR,
574#define DAOS_POOL_CONT_FILTER_MAX_NPARTS (8)
635daos_pool_get_perms(
daos_prop_t *pool_prop, uid_t uid, gid_t *gids,
size_t nr_gids,
638#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