22 #ifndef __MOTR_CONF_HELPERS_H__ 23 #define __MOTR_CONF_HELPERS_H__ 66 #define M0_CONF_OBJ_GETTERS \ 72 M0_INTERNAL int type ## _get(struct m0_confc *confc, \ 73 const struct m0_fid *fid, \ 151 uint32_t *nr_devices);
struct m0_sm_group * ca_group
M0_INTERNAL int m0_conf_confc_ha_update(struct m0_confc *confc)
static const char * ep_addr
M0_INTERNAL bool m0_is_cas_disk(const struct m0_conf_obj *obj)
M0_INTERNAL int m0_confc_service_find(struct m0_confc *confc, enum m0_conf_service_type stype, const char *ep, struct m0_conf_obj **result)
M0_INTERNAL int m0_conf_objs_ha_update(struct m0_ha_nvec *nvec)
struct m0_conf_root * root
M0_INTERNAL int m0_conf_pver_get(struct m0_confc *confc, const struct m0_fid *pool, struct m0_conf_pver **out)
M0_INTERNAL bool m0_is_ios_disk(const struct m0_conf_obj *obj)
M0_INTERNAL bool m0_conf_service_is_top_rms(const struct m0_conf_service *svc)
M0_INTERNAL bool m0_conf_service_ep_is_known(const struct m0_conf_obj *svc_obj, const char *ep_addr)
static const struct socktype stype[]
M0_INTERNAL int m0_conf_confc_ha_update_async(struct m0_confc *confc, struct m0_ha_nvec *nvec, struct m0_chan *chan)
M0_INTERNAL int m0_conf_device_cid_to_fid(struct m0_confc *confc, uint64_t cid, struct m0_fid *out)
static struct m0_confc * confc
M0_INTERNAL struct m0_reqh * m0_confc2reqh(const struct m0_confc *confc)
M0_INTERNAL bool m0_disk_is_of_type(const struct m0_conf_obj *obj, uint64_t svc_types)
#define M0_CONF_OBJ_GETTERS
M0_INTERNAL int m0_conf_full_load(struct m0_conf_root *r)
M0_INTERNAL int m0_conf_process2service_get(struct m0_confc *confc, const struct m0_fid *process_fid, enum m0_conf_service_type stype, struct m0_fid *sfid)
M0_INTERNAL int m0_confc_root_open(struct m0_confc *confc, struct m0_conf_root **root)
struct m0_rpc_machine * ca_rmach
static struct m0_pool pool
static struct m0_chan chan[RDWR_REQUEST_MAX]
M0_INTERNAL struct m0_conf_pver ** m0_conf_pvers(const struct m0_conf_obj *obj)
static struct m0_net_test_service svc
M0_INTERNAL int m0_confc_profile_open(struct m0_confc *confc, const struct m0_fid *fid, struct m0_conf_profile **out)
M0_INTERNAL bool m0_conf_obj_is_pool(const struct m0_conf_obj *obj)
static struct m0_rconfc * rconfc(struct m0_client *m0c)
M0_INTERNAL struct m0_reqh * m0_conf_obj2reqh(const struct m0_conf_obj *obj)
M0_INTERNAL void m0_confc_expired_cb(struct m0_rconfc *rconfc)
M0_INTERNAL int m0_conf_devices_count(struct m0_confc *confc, uint64_t svc_types, uint32_t *nr_devices)
static const char * process_fid
M0_INTERNAL void m0_confc_ready_cb(struct m0_rconfc *rconfc)
M0_INTERNAL int m0_conf_obj_ha_update(const struct m0_fid *obj_fid)