Motr
M0
|
Data Structures | |
struct | spiel_repreb |
struct | _pool_cmd_ctx |
struct | m0_proc_data |
struct | spiel_proc_counter_item |
struct | spiel_proc_item |
struct | spiel_string_entry |
struct | _fs_stats_ctx |
struct | spiel_conf_param |
struct | m0_spiel_wlock_ctx |
struct | m0_spiel_load_command |
Macros | |
#define | SPIEL_CONF_OBJ_FIND(confc, fid, conf_obj, filter, ...) |
#define | SPIEL_CONF_DIR_ITERATE(confc, ctx, iter_cb, ...) |
#define | SPIEL_DEVICE_FORMAT_TIMEOUT m0_time_from_now(10*60, 0) |
#define | SPIEL_LOGLVL M0_DEBUG |
#define | SPIEL_CONF_CHECK(cache, ...) |
Enumerations | |
enum | { SPIEL_MAX_RPCS_IN_FLIGHT = 1, SPIEL_CONN_TIMEOUT = 5 } |
Functions | |
M0_TL_DESCR_DEFINE (spiel_string, "list of endpoints", static, struct spiel_string_entry, sse_link, sse_magic, M0_STATS_MAGIC, M0_STATS_HEAD_MAGIC) | |
M0_TL_DEFINE (spiel_string, static, struct spiel_string_entry) | |
static void | spiel_fop_destroy (struct m0_fop *fop) |
static void | spiel_rpc_link_destroy (struct m0_rpc_link *rlink) |
static bool | _filter_svc (const struct m0_conf_obj *obj) |
static bool | _filter_controller (const struct m0_conf_obj *obj) |
static int | spiel_node_process_endpoint_add (struct m0_spiel_core *spc, struct m0_conf_obj *node, struct m0_tl *list) |
static int | spiel_endpoints_for_device_generic (struct m0_spiel_core *spc, const struct m0_fid *drive, struct m0_tl *out) |
static int | spiel_cmd_send (struct m0_rpc_machine *rmachine, const char *remote_ep, struct m0_fop *cmd_fop, m0_time_t timeout, struct m0_rpc_link **rlink) |
static int | _spiel_conf_obj_find (struct m0_confc *confc, const struct m0_fid *obj_fid, bool(*filter)(const struct m0_conf_obj *obj), uint32_t nr_lvls, const struct m0_fid *path, struct m0_conf_obj **conf_obj) |
Find object with given obj_fid in provided confc. More... | |
static int | _spiel_conf_dir_iterate (struct m0_confc *confc, void *ctx, bool(*iter_cb)(const struct m0_conf_obj *item, void *ctx), uint32_t nr_lvls, const struct m0_fid *path) |
static int | spiel_ss_ep_for_svc (const struct m0_conf_service *s, char **ss_ep) |
static int | spiel_svc_conf_obj_find (struct m0_spiel_core *spc, const struct m0_fid *svc, struct m0_conf_service **out) |
static int | spiel_svc_fop_fill (struct m0_fop *fop, struct m0_conf_service *svc, uint32_t cmd) |
static int | spiel_svc_fop_fill_and_send (struct m0_spiel_core *spc, struct m0_fop *fop, const struct m0_fid *svc_fid, uint32_t cmd, struct m0_rpc_link **rlink) |
static struct m0_fop * | spiel_svc_fop_alloc (struct m0_rpc_machine *mach) |
static struct m0_sss_rep * | spiel_sss_reply_data (struct m0_fop *fop) |
static int | spiel_svc_generic_handler (struct m0_spiel_core *spc, const struct m0_fid *svc_fid, enum m0_sss_req_cmd cmd, int *status) |
int | m0_spiel_service_init (struct m0_spiel *spl, const struct m0_fid *svc_fid) |
int | m0_spiel_service_start (struct m0_spiel *spl, const struct m0_fid *svc_fid) |
int | m0_spiel_service_stop (struct m0_spiel *spl, const struct m0_fid *svc_fid) |
int | m0_spiel_service_health (struct m0_spiel *spl, const struct m0_fid *svc_fid) |
int | m0_spiel_service_quiesce (struct m0_spiel *spl, const struct m0_fid *svc_fid) |
int | m0_spiel_service_status (struct m0_spiel *spl, const struct m0_fid *svc_fid, int *status) |
static int | spiel_device_command_fop_send (struct m0_spiel_core *spc, const char *endpoint, const struct m0_fid *dev_fid, int cmd, uint32_t *ha_state) |
static int | spiel_device_command_send (struct m0_spiel_core *spc, const struct m0_fid *drive, enum m0_sss_device_req_cmd cmd, uint32_t *ha_state) |
int | m0_spiel_device_attach (struct m0_spiel *spl, const struct m0_fid *dev_fid) |
int | m0_spiel_device_attach_state (struct m0_spiel *spl, const struct m0_fid *dev_fid, uint32_t *ha_state) |
int | m0_spiel_device_detach (struct m0_spiel *spl, const struct m0_fid *dev_fid) |
int | m0_spiel_device_format (struct m0_spiel *spl, const struct m0_fid *dev_fid) |
static bool | _filter_proc (const struct m0_conf_obj *obj) |
static int | spiel_proc_conf_obj_find (struct m0_spiel_core *spc, const struct m0_fid *proc, struct m0_conf_process **out) |
static int | spiel_process_command_send (struct m0_spiel_core *spc, const struct m0_fid *proc_fid, struct m0_fop *fop, struct m0_rpc_link **rlink) |
static struct m0_ss_process_rep * | spiel_process_reply_data (struct m0_fop *fop) |
static int | spiel_process_command_execute (struct m0_spiel_core *spc, const struct m0_fid *proc_fid, int cmd, const struct m0_buf *param, struct m0_ss_process_rep *ssp_rep) |
static int | spiel_process_command (struct m0_spiel *spl, const struct m0_fid *proc_fid, int cmd) |
int | m0_spiel_process_stop (struct m0_spiel *spl, const struct m0_fid *proc_fid) |
int | m0_spiel_process_reconfig (struct m0_spiel *spl, const struct m0_fid *proc_fid) |
static int | spiel_process__health (struct m0_spiel_core *spc, const struct m0_fid *proc_fid) |
int | m0_spiel_process_health (struct m0_spiel *spl, const struct m0_fid *proc_fid) |
int | m0_spiel_process_quiesce (struct m0_spiel *spl, const struct m0_fid *proc_fid) |
static int | spiel_running_svcs_list_fill (struct m0_bufs *bufs, struct m0_spiel_running_svc **svcs) |
int | m0_spiel_process_list_services (struct m0_spiel *spl, const struct m0_fid *proc_fid, struct m0_spiel_running_svc **services) |
int | m0_spiel_process_lib_load (struct m0_spiel *spl, const struct m0_fid *proc_fid, const char *libname) |
static int | spiel_stats_item_add (struct m0_tl *tl, const struct m0_fid *fid) |
static bool | _filter_pool (const struct m0_conf_obj *obj) |
static int | spiel_repreb_cmd_send (struct m0_rpc_machine *rmachine, const char *remote_ep, struct spiel_repreb *repreb) |
static int | spiel_repreb_fop_fill_and_send (struct m0_spiel_core *spc, struct m0_fop *fop, enum m0_cm_op op, struct spiel_repreb *repreb) |
static int | spiel_pool_device_collect (struct _pool_cmd_ctx *ctx, struct m0_conf_obj *obj_diskv) |
static bool | _filter_sdev (const struct m0_conf_obj *obj) |
static bool | spiel__pool_service_has_sdev (struct _pool_cmd_ctx *ctx, const struct m0_conf_obj *service) |
static void | spiel__pool_ctx_init (struct _pool_cmd_ctx *ctx, struct m0_spiel_core *spc, enum m0_repreb_type type) |
static void | spiel__pool_ctx_fini (struct _pool_cmd_ctx *ctx) |
static void | spiel__add_item (struct _pool_cmd_ctx *pool_ctx, const struct m0_conf_obj *item, struct m0_conf_service *service, enum m0_conf_service_type type) |
static bool | spiel__pool_service_select (const struct m0_conf_obj *item, void *ctx) |
static int | spiel__pool_cmd_send (struct _pool_cmd_ctx *ctx, const enum m0_cm_op cmd, struct spiel_repreb *repreb) |
static int | spiel__pool_cmd_status_get (struct _pool_cmd_ctx *ctx, const enum m0_cm_op cmd, struct spiel_repreb *repreb) |
static bool | _filter_objv (const struct m0_conf_obj *obj) |
static int | spiel_pool__device_collection_fill (struct _pool_cmd_ctx *ctx, const struct m0_fid *pool_fid) |
static int | spiel_pool_generic_handler (struct m0_spiel_core *spc, const struct m0_fid *pool_fid, const enum m0_cm_op cmd, struct m0_spiel_repreb_status **statuses, enum m0_repreb_type type) |
int | m0_spiel_sns_repair_start (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_repair_start (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_repair_start (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_repair_continue (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_repair_continue (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_repair_continue (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_repair_quiesce (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_repair_quiesce (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_repair_quiesce (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_repair_abort (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_repair_abort (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_repair_abort (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_repair_status (struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses) |
int | m0_spiel_dix_repair_status (struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses) |
int | m0_spiel_pool_repair_status (struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_sns_status **statuses) |
int | m0_spiel_sns_rebalance_start (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_rebalance_start (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_rebalance_start (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_rebalance_continue (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_node_direct_rebalance_start (struct m0_spiel *spl, const struct m0_fid *node_fid) |
int | m0_spiel_dix_rebalance_continue (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_rebalance_continue (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_rebalance_quiesce (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_rebalance_quiesce (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_rebalance_quiesce (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_sns_rebalance_status (struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses) |
int | m0_spiel_dix_rebalance_status (struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_repreb_status **statuses) |
int | m0_spiel_pool_rebalance_status (struct m0_spiel *spl, const struct m0_fid *pool_fid, struct m0_spiel_sns_status **statuses) |
int | m0_spiel_sns_rebalance_abort (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_dix_rebalance_abort (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
int | m0_spiel_pool_rebalance_abort (struct m0_spiel *spl, const struct m0_fid *pool_fid) |
M0_TL_DESCR_DEFINE (spiel_proc_items, "spiel_proc_items", static, struct spiel_proc_item, spi_link, spi_magic, M0_SPIEL_PROC_MAGIC, M0_SPIEL_PROC_HEAD_MAGIC) | |
M0_TL_DEFINE (spiel_proc_items, static, struct spiel_proc_item) | |
static void | _fs_stats_ctx_lock (struct _fs_stats_ctx *fsx) |
static void | _fs_stats_ctx_unlock (struct _fs_stats_ctx *fsx) |
static void | spiel_proc_item_postprocess (struct spiel_proc_item *proc) |
static bool | spiel_proc_item_disconnect_cb (struct m0_clink *clink) |
static void | spiel_process_disconnect_async (struct spiel_proc_item *proc) |
static void | spiel_process_health_replied_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
static void | spiel_proc_item_disconnect_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
static struct m0_sm_group * | spiel_proc_sm_group (const struct spiel_proc_item *p) |
static void | spiel_process_health_replied (struct m0_rpc_item *item) |
static bool | spiel_proc_item_rlink_cb (struct m0_clink *clink) |
static void | spiel_process__health_async (struct _fs_stats_ctx *fsx, struct spiel_proc_item *proc) |
static void | spiel__fs_stats_ctx_init (struct _fs_stats_ctx *fsx, struct m0_spiel_core *spc, const struct m0_conf_obj_type *item_type) |
static void | spiel__fs_stats_ctx_fini (struct _fs_stats_ctx *fsx) |
static bool | spiel__item_enlist (const struct m0_conf_obj *item, void *ctx) |
static int | spiel__proc_is_to_update_stats (struct spiel_proc_item *proc, struct m0_confc *confc) |
static void | spiel_process_counter_replied_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
static struct m0_sm_group * | spiel_counter_sm_group (struct spiel_proc_counter_item *i) |
static void | spiel_process_counter_replied (struct m0_rpc_item *item) |
static bool | spiel_proc_counter_item_rlink_cb (struct m0_clink *clink) |
static int | spiel_process__counters_async (struct spiel_proc_counter_item *proc) |
static void | count_stats_failed_free (struct m0_proc_counter *count_stats, int failed_index) |
int | m0_spiel_proc_counters_fetch (struct m0_spiel *spl, struct m0_fid *proc_fid, struct m0_proc_counter *count_stats) |
M0_INTERNAL int | m0_spiel__fs_stats_fetch (struct m0_spiel_core *spc, struct m0_fs_stats *stats) |
int | m0_spiel_filesystem_stats_fetch (struct m0_spiel *spl, struct m0_fs_stats *stats) |
int | m0_spiel_confstr (struct m0_spiel *spl, char **out) |
int | m0_spiel_conf_pver_status (struct m0_spiel *spl, struct m0_fid *fid, struct m0_conf_pver_info *out_info) |
M0_TL_DESCR_DECLARE (rpcbulk, M0_EXTERN) | |
static int | spiel_rwlockable_write_domain_init (struct m0_spiel_wlock_ctx *wlx) |
static void | spiel_rwlockable_write_domain_fini (struct m0_spiel_wlock_ctx *wlx) |
static int | spiel_root_ver_update (struct m0_spiel_tx *tx, uint64_t verno) |
void | m0_spiel_tx_open (struct m0_spiel *spiel, struct m0_spiel_tx *tx) |
int | m0_spiel_tx_validate (struct m0_spiel_tx *tx) |
void | m0_spiel_tx_close (struct m0_spiel_tx *tx) |
static bool | spiel_load_cmd_invariant (struct m0_spiel_load_command *cmd) |
static uint64_t | spiel_root_conf_version (struct m0_spiel_tx *tx) |
static void | spiel_load_fop_fini (struct m0_spiel_load_command *spiel_cmd) |
static void | spiel_load_fop_release (struct m0_ref *ref) |
static int | spiel_load_fop_init (struct m0_spiel_load_command *spiel_cmd, struct m0_spiel_tx *tx) |
static int | spiel_load_fop_create (struct m0_spiel_tx *tx, struct m0_spiel_load_command *spiel_cmd) |
static int | spiel_load_fop_send (struct m0_spiel_tx *tx, struct m0_spiel_load_command *spiel_cmd) |
static void | spiel_flip_fop_release (struct m0_ref *ref) |
static int | spiel_flip_fop_send (struct m0_spiel_tx *tx, struct m0_spiel_load_command *spiel_cmd) |
static int | wlock_ctx_semaphore_init (struct m0_spiel_wlock_ctx *wlx) |
static void | wlock_ctx_semaphore_up (struct m0_spiel_wlock_ctx *wlx) |
static int | wlock_ctx_create (struct m0_spiel *spl) |
static void | wlock_ctx_destroy (struct m0_spiel_wlock_ctx *wlx) |
static int | wlock_ctx_connect (struct m0_spiel_wlock_ctx *wlx) |
static void | wlock_ctx_disconnect (struct m0_spiel_wlock_ctx *wlx) |
static void | spiel_tx_write_lock_complete (struct m0_rm_incoming *in, int32_t rc) |
static void | spiel_tx_write_lock_conflict (struct m0_rm_incoming *in) |
static void | wlock_ctx_creditor_setup (struct m0_spiel_wlock_ctx *wlx) |
static void | _spiel_tx_write_lock_get (struct m0_spiel_wlock_ctx *wlx) |
static void | wlock_ctx_creditor_unset (struct m0_spiel_wlock_ctx *wlx) |
static void | wlock_ctx_semaphore_down (struct m0_spiel_wlock_ctx *wlx) |
static void | wlock_ctx_owner_windup (struct m0_spiel_wlock_ctx *wlx) |
static int | spiel_tx_write_lock_get (struct m0_spiel_tx *tx) |
static void | _spiel_tx_write_lock_put (struct m0_spiel_wlock_ctx *wlx) |
static void | spiel_tx_write_lock_put (struct m0_spiel_tx *tx) |
int | m0_spiel_tx_commit_forced (struct m0_spiel_tx *tx, bool forced, uint64_t ver_forced, uint32_t *rquorum) |
int | m0_spiel_tx_commit (struct m0_spiel_tx *tx) |
static int | spiel_root_dirs_create (struct m0_conf_root *r) |
static int | spiel_node_dirs_create (struct m0_conf_node *node) |
static int | spiel_process_dirs_create (struct m0_conf_process *process) |
static int | spiel_service_dirs_create (struct m0_conf_service *service) |
static int | spiel_pool_dirs_create (struct m0_conf_pool *pool) |
static int | spiel_site_dirs_create (struct m0_conf_site *site) |
static int | spiel_rack_dirs_create (struct m0_conf_rack *rack) |
static int | spiel_enclosure_dirs_create (struct m0_conf_enclosure *enclosure) |
static int | spiel_controller_dirs_create (struct m0_conf_controller *controller) |
static int | spiel_pver_dirs_create (struct m0_conf_pver *pver) |
static int | spiel_sitev_dirs_create (struct m0_conf_objv *objv) |
static int | spiel_rackv_dirs_create (struct m0_conf_objv *objv) |
static int | spiel_enclosurev_dirs_create (struct m0_conf_objv *objv) |
static int | spiel_controllerv_dirs_create (struct m0_conf_objv *objv) |
static int | spiel_conf_parameter_check (struct m0_conf_cache *cache, struct spiel_conf_param *parameters) |
int | m0_spiel_root_add (struct m0_spiel_tx *tx, const struct m0_fid *rootfid, const struct m0_fid *mdpool, const struct m0_fid *imeta_pver, uint32_t mdredundancy, const char **params) |
int | m0_spiel_node_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, uint32_t memsize, uint32_t nr_cpu, uint64_t last_state, uint64_t flags) |
static bool | spiel_cores_is_valid (const struct m0_bitmap *cores) |
int | m0_spiel_process_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, struct m0_bitmap *cores, uint64_t memlimit_as, uint64_t memlimit_rss, uint64_t memlimit_stack, uint64_t memlimit_memlock, const char *endpoint) |
int | m0_spiel_service_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_spiel_service_info *service_info) |
int | m0_spiel_device_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *drive, uint32_t dev_idx, enum m0_cfg_storage_device_interface_type iface, enum m0_cfg_storage_device_media_type media, uint32_t bsize, uint64_t size, uint64_t last_state, uint64_t flags, const char *filename) |
int | m0_spiel_profile_add (struct m0_spiel_tx *tx, const struct m0_fid *fid) |
static int | spiel_profile_pool_add (struct m0_conf_profile *prof, const struct m0_fid *pool) |
int | m0_spiel_profile_pool_add (struct m0_spiel_tx *tx, const struct m0_fid *profile, const struct m0_fid *pool) |
int | m0_spiel_pool_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, uint32_t pver_policy) |
int | m0_spiel_site_add (struct m0_spiel_tx *tx, const struct m0_fid *fid) |
int | m0_spiel_rack_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent) |
int | m0_spiel_enclosure_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *node) |
int | m0_spiel_controller_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent) |
int | m0_spiel_drive_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent) |
int | m0_spiel_pver_actual_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_pdclust_attr *attrs, uint32_t *tolerance, uint32_t tolerance_len) |
int | m0_spiel_pver_formulaic_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, uint32_t index, const struct m0_fid *base_pver, uint32_t *allowance, uint32_t allowance_len) |
int | m0_spiel_site_v_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *real) |
int | m0_spiel_rack_v_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *real) |
int | m0_spiel_enclosure_v_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *real) |
int | m0_spiel_controller_v_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *real) |
int | m0_spiel_drive_v_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, const struct m0_fid *parent, const struct m0_fid *real) |
static int | spiel_pver_add (struct m0_conf_obj **obj_v, struct m0_conf_pver *pver) |
static int | spiel_pver_delete (struct m0_conf_obj *obj, const struct m0_conf_pver *pver) |
static int | spiel_objv_remove (struct m0_conf_obj **obj, struct m0_conf_pver *pver) |
static int | spiel_pver_iterator (struct m0_conf_obj *dir, struct m0_conf_pver *pver, int(*action)(struct m0_conf_obj **, struct m0_conf_pver *)) |
int | m0_spiel_pool_version_done (struct m0_spiel_tx *tx, const struct m0_fid *fid) |
static void | spiel_pver_remove (struct m0_conf_cache *cache, struct m0_conf_pver *pver) |
int | m0_spiel_element_del (struct m0_spiel_tx *tx, const struct m0_fid *fid) |
static int | spiel_str_to_file (char *str, const char *filename) |
static int | spiel_tx_to_str (struct m0_spiel_tx *tx, uint64_t ver_forced, char **str, bool debug) |
int | m0_spiel_tx_to_str (struct m0_spiel_tx *tx, uint64_t ver_forced, char **str) |
void | m0_spiel_tx_str_free (char *str) |
static int | spiel_tx_dump (struct m0_spiel_tx *tx, uint64_t ver_forced, const char *filename, bool debug) |
int | m0_spiel_tx_dump (struct m0_spiel_tx *tx, uint64_t ver_forced, const char *filename) |
int | m0_spiel_tx_dump_debug (struct m0_spiel_tx *tx, uint64_t ver_forced, const char *filename) |
int | m0_spiel_init (struct m0_spiel *spiel, struct m0_reqh *reqh) |
void | m0_spiel_fini (struct m0_spiel *spiel) |
int | m0_spiel_rconfc_start (struct m0_spiel *spiel, m0_rconfc_cb_t expired_cb) |
void | m0_spiel_rconfc_stop (struct m0_spiel *spiel) |
int | m0_spiel_cmd_profile_set (struct m0_spiel *spiel, const char *profile_str) |
Variables | |
struct m0_rpc_item_ops | spiel_process_health_ops |
struct m0_rpc_item_ops | spiel_process_counter_ops |
static struct m0_rm_incoming_ops | spiel_tx_ri_ops |
#define SPIEL_CONF_CHECK | ( | cache, | |
... | |||
) |
Definition at line 75 of file conf_mgmt.c.
Definition at line 40 of file cmd_internal.h.
Definition at line 33 of file cmd_internal.h.
#define SPIEL_DEVICE_FORMAT_TIMEOUT m0_time_from_now(10*60, 0) |
Definition at line 51 of file cmd_internal.h.
#define SPIEL_LOGLVL M0_DEBUG |
Definition at line 88 of file cmd_internal.h.
anonymous enum |
Enumerator | |
---|---|
SPIEL_MAX_RPCS_IN_FLIGHT | |
SPIEL_CONN_TIMEOUT |
Definition at line 46 of file cmd_internal.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Find object with given obj_fid in provided confc.
Function uses m0_conf_diter internally and traverses tree starting from the root object in confc.
Should not be called directly, macro SPIEL_CONF_OBJ_FIND should be used instead.
User should close returned non-NULL conf_obj using m0_confc_close()
confc | confc instance |
obj_fid | object FID to search for |
filter | function to filter nodes during tree traversal. Identical to filter argument in m0_conf_diter_next_sync |
nr_lvls | Number of directory levels to traverse (m0_conf__diter_init) |
path | Path in configuration tree to traverse. Path should be started from the root object |
conf_obj | output value. Found object or NULL if object is not found |
Definition at line 258 of file cmd.c.
|
static |
Definition at line 480 of file conf_mgmt.c.
|
static |
Definition at line 562 of file conf_mgmt.c.
|
static |
M0_INTERNAL int m0_spiel__fs_stats_fetch | ( | struct m0_spiel_core * | spc, |
struct m0_fs_stats * | stats | ||
) |
A less demanding version of m0_spiel_filesystem_stats_fetch() requiring a properly initialised m0_spiel_core as a "lightweight spiel" instance.
Definition at line 2315 of file cmd.c.
int m0_spiel_cmd_profile_set | ( | struct m0_spiel * | spiel, |
const char * | profile_str | ||
) |
int m0_spiel_conf_pver_status | ( | struct m0_spiel * | spl, |
struct m0_fid * | fid, | ||
struct m0_conf_pver_info * | out_info | ||
) |
Returns the status of the pool version according to number of failed srecd objects in the pool version.
This is a wrapper over conf/pvers.h m0_conf_pver_status().
spl | spiel instance, must have confc cache initialized and populated. |
fid | fid of the pool version whose status is queried. |
out_info | out parameter which will contain status along with some pdclust attributes of pool version. |
Definition at line 2397 of file cmd.c.
int m0_spiel_confstr | ( | struct m0_spiel * | spl, |
char ** | out | ||
) |
Dumps configuration cache to a string in XC format.
Configuration cache is expected to be fully loaded at this point. (Call m0_spiel_confstr() after m0_spiel_rconfc_start(), and you will be fine.)
Definition at line 2380 of file cmd.c.
int m0_spiel_controller_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent | ||
) |
Adds controller to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the controller |
parent | fid of the parent enclosure |
Definition at line 1518 of file conf_mgmt.c.
int m0_spiel_controller_v_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | real | ||
) |
Adds controller "v-object"
tx | spiel transaction |
fid | fid of controller-v |
parent | fid of the parent enclosure-v |
real | fid of the enclosure this object points to |
Definition at line 1864 of file conf_mgmt.c.
int m0_spiel_device_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | drive, | ||
uint32_t | dev_idx, | ||
enum m0_cfg_storage_device_interface_type | iface, | ||
enum m0_cfg_storage_device_media_type | media, | ||
uint32_t | bsize, | ||
uint64_t | size, | ||
uint64_t | last_state, | ||
uint64_t | flags, | ||
const char * | filename | ||
) |
Adds service to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the device |
parent | fid of the parent service |
drive | fid of the corresponding drive |
iface | device interface type |
media | device media type |
bsize | block size in bytes |
size | size in bytes |
last_state | last known state (bitmask of m0_cfg_state_bit) |
flags | different flags (bitmask of m0_cfg_flag_bit) |
filename | device filename. |
Definition at line 1156 of file conf_mgmt.c.
int m0_spiel_dix_rebalance_status | ( | struct m0_spiel * | spl, |
const struct m0_fid * | pool_fid, | ||
struct m0_spiel_repreb_status ** | statuses | ||
) |
int m0_spiel_dix_repair_status | ( | struct m0_spiel * | spl, |
const struct m0_fid * | pool_fid, | ||
struct m0_spiel_repreb_status ** | statuses | ||
) |
int m0_spiel_drive_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent | ||
) |
Adds drive to the configuration tree of the transcation
tx | spiel transaction |
fid | fid of the drive |
parent | fid of the parent controller |
Definition at line 1562 of file conf_mgmt.c.
int m0_spiel_drive_v_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | real | ||
) |
Adds drive "v-object"
tx | spiel transaction |
fid | fid of drive-v |
parent | fid of the parent controller-v |
real | fid of the drive this object points to |
Definition at line 1912 of file conf_mgmt.c.
int m0_spiel_element_del | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid | ||
) |
Deletes element that was previously added to transaction configuration tree.
tx | spiel transaction |
fid | fid of the object to be deleted |
Definition at line 2124 of file conf_mgmt.c.
int m0_spiel_enclosure_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | node | ||
) |
Adds enclosure to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the enclosure |
parent | fid of the parent rack |
node | the node this enclosure is associated with |
Definition at line 1470 of file conf_mgmt.c.
int m0_spiel_enclosure_v_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | real | ||
) |
Adds enclosure "v-object"
tx | spiel transaction |
fid | fid of enclosure-v |
parent | fid of the parent rack-v |
real | fid of the enclosure this object points to |
Definition at line 1816 of file conf_mgmt.c.
int m0_spiel_filesystem_stats_fetch | ( | struct m0_spiel * | spl, |
struct m0_fs_stats * | stats | ||
) |
Fetches stats for filesystem pools within the profile. Spiel API internally polls all process instances registered in configuration database under the profile.
[in] | spl | spiel instance, must have profile fid set up to the moment of the call |
[out] | stats | instance of m0_fs_stats to be filled with resultant values. The instance counter values are written only in case of success, and must be ignored otherwise. |
Definition at line 2374 of file cmd.c.
void m0_spiel_fini | ( | struct m0_spiel * | spiel | ) |
Initialises spiel instance. Should be invoked before using other spiel functions. If initialisation fails, then spiel instance must not be used.
spiel | spiel instance |
reqh | request handler |
Definition at line 44 of file spiel.c.
int m0_spiel_node_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
uint32_t | memsize, | ||
uint32_t | nr_cpu, | ||
uint64_t | last_state, | ||
uint64_t | flags | ||
) |
Adds node to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the node |
memsize | amount of available memory on the node |
nr_cpu | number of CPUs on the node |
last_state | last known state (bitmask of m0_cfg_state_bit) |
flags | different flags (bitmask of m0_cfg_flag_bit) |
Definition at line 974 of file conf_mgmt.c.
int m0_spiel_pool_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
uint32_t | pver_policy | ||
) |
Adds pool to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the pool |
pver_policy | pool version policy |
Definition at line 1339 of file conf_mgmt.c.
int m0_spiel_pool_rebalance_status | ( | struct m0_spiel * | spl, |
const struct m0_fid * | pool_fid, | ||
struct m0_spiel_sns_status ** | statuses | ||
) |
int m0_spiel_pool_repair_status | ( | struct m0_spiel * | spl, |
const struct m0_fid * | pool_fid, | ||
struct m0_spiel_sns_status ** | statuses | ||
) |
int m0_spiel_pool_version_done | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid | ||
) |
Signals that constructing pool version tree is finished
tx | spiel transaction |
fid | fid of the pool version |
Definition at line 2075 of file conf_mgmt.c.
int m0_spiel_proc_counters_fetch | ( | struct m0_spiel * | spl, |
struct m0_fid * | proc_fid, | ||
struct m0_proc_counter * | count_stats | ||
) |
Fetches byte counts and object counts per pool version written by all end users from a target ioservice. All entries in the byte count btree present in the ioservice is fetched by a call of this API.
[in] | spl | spiel instance used for executing spiel command. |
[in] | proc_fid | fid of the target ioservice. |
[out] | count_stats | instance of m0_proc_counter to be filled with resultant values. Check m0_proc_counter::pc_rc for successful execution, ignore rest of the values otherwise. |
Definition at line 2211 of file cmd.c.
int m0_spiel_process_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
struct m0_bitmap * | cores, | ||
uint64_t | memlimit_as, | ||
uint64_t | memlimit_rss, | ||
uint64_t | memlimit_stack, | ||
uint64_t | memlimit_memlock, | ||
const char * | endpoint | ||
) |
Adds process to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the process |
parent | fid of the parent node |
cores | limit on the number of used cores |
memlimit_* | memory limit for the process |
endpoint | process endpoint |
Definition at line 1033 of file conf_mgmt.c.
int m0_spiel_process_lib_load | ( | struct m0_spiel * | spl, |
const struct m0_fid * | proc_fid, | ||
const char * | libname | ||
) |
Loads a library in the process address space.
Library loading is supported only in user space at the moment. The library must be loadable by dlopen(3).
When the library is loaded, motr_lib_init() function in it (if present) is invoked without parameters. This funciton is called in a fom tick context, so it shouldn't block.
spl | spiel instance |
proc_fid | process fid from configuration DB |
libname | full path to the library in the server file system. |
Definition at line 892 of file cmd.c.
int m0_spiel_process_list_services | ( | struct m0_spiel * | spl, |
const struct m0_fid * | proc_fid, | ||
struct m0_spiel_running_svc ** | services | ||
) |
Lists currently running services inside the motr process. Can be used to monitor services and detect service failures.
spl | spiel instance |
proc_fid | process fid from configuration DB |
services | array to store running services fid and name, see m0_spiel_running_svc |
Definition at line 858 of file cmd.c.
int m0_spiel_profile_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid | ||
) |
Adds profile to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the profile |
Definition at line 1236 of file conf_mgmt.c.
int m0_spiel_profile_pool_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | profile, | ||
const struct m0_fid * | pool | ||
) |
Adds pool into the profile
To add several pools into the profile - call this routine several times with a new argument each time.
Definition at line 1304 of file conf_mgmt.c.
int m0_spiel_pver_actual_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_pdclust_attr * | attrs, | ||
uint32_t * | tolerance, | ||
uint32_t | tolerance_len | ||
) |
Adds an actual pool version.
Pool version is represented as a tree of "v-objects". "V-objects" can be added to the pool version using calls like m0_spiel_site_v_add(), m0_spiel_rack_v_add(), etc. After all "V-objects" are added, function m0_spiel_pool_version_done() should be called.
Parameter tolerance is number of allowed HW failures in each failure domain. Currently there are 5 failure domains: sites, racks, enclosures, controllers, and drives.
tx | spiel transaction |
fid | fid of the pool version |
parent | fid of the parent pool |
attrs | attributes specific to layout type |
tolerance | allowed failures for each failure domain |
tolerance_len | number of elements in tolerance array |
Definition at line 1601 of file conf_mgmt.c.
int m0_spiel_pver_formulaic_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
uint32_t | index, | ||
const struct m0_fid * | base_pver, | ||
uint32_t * | allowance, | ||
uint32_t | allowance_len | ||
) |
Adds a formulaic pool version.
tx | Spiel transaction. |
fid | Pool version fid. |
parent | Parent pool fid. |
index | Cluster-unique identifier of this formulaic pver. |
base_pver | Actual pver, the subtree of which is used as a base for virtual pver creation/restoration. |
allowance | Number of allowed failures for each level of pver subtree. |
allowance_len | Number of elements in the ‘allowance’ array. |
Definition at line 1659 of file conf_mgmt.c.
int m0_spiel_rack_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent | ||
) |
Adds rack to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the rack |
parent | fid of the parent site |
Definition at line 1426 of file conf_mgmt.c.
int m0_spiel_rack_v_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | real | ||
) |
Adds rack "v-object"
tx | spiel transaction |
fid | fid of rack-v |
parent | fid of the parent site-v |
real | fid of the rack this object points to |
Definition at line 1768 of file conf_mgmt.c.
int m0_spiel_rconfc_start | ( | struct m0_spiel * | spiel, |
m0_rconfc_cb_t | expired_cb | ||
) |
Starts spiel instance.
Schematic code to start spiel using standard motr setup procedure:
spiel | spiel instance |
m0_rconfc_cb_t | rconfc expiration callback |
Definition at line 66 of file spiel.c.
void m0_spiel_rconfc_stop | ( | struct m0_spiel * | spiel | ) |
int m0_spiel_root_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | rootfid, | ||
const struct m0_fid * | mdpool, | ||
const struct m0_fid * | imeta_pver, | ||
uint32_t | mdredundancy, | ||
const char ** | params | ||
) |
Adds the configuration tree of the transaction
tx | spiel transaction |
rootfid | Any fid. Reserved for future use. |
mdpool | meta-data pool |
imeta_pver | Distributed index meta-data pool version. It contains storage devices controlled by CAS services — no IOS storage devices are allowed. If there are no CAS services in configuration then the value should be M0_FID0. Index meta-data is created (analogue of m0mkfs for distributed indices) during cluster provisioning via m0_dix_meta_create() or via special utility like m0dixinit. m0_dix_meta_create() will refuse to create meta-data if it already exists. In this case user may destroy meta-data via m0_dix_meta_destroy() or just zero corresponding devices. For more detailed information see dix/client.h, "Index meta-data" section. |
mdredundancy | meta-data redundancy |
params | NULL-terminated array of extra parameters. Parameters are copied, so caller can safely free them. |
Definition at line 902 of file conf_mgmt.c.
int m0_spiel_service_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_spiel_service_info * | service_info | ||
) |
Adds service to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the service |
parent | fid of the parent process |
service_info | service info |
Definition at line 1101 of file conf_mgmt.c.
Checks health status of the motr service
spl | spiel instance |
svc_fid | service fid from configuration DB |
Definition at line 537 of file cmd.c.
Returns status of the motr service
spl | spiel instance |
svc_fid | service fid from configuration DB |
Definition at line 556 of file cmd.c.
Stops motr service. Stopping of Top Level RM is disallowed, the function returns -EPERM result code in this case.
spl | spiel instance |
svc_fid | service fid from configuration DB |
Definition at line 525 of file cmd.c.
int m0_spiel_site_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid | ||
) |
Adds site to the configuration tree of the transaction
tx | spiel transaction |
fid | fid of the site |
Definition at line 1382 of file conf_mgmt.c.
int m0_spiel_site_v_add | ( | struct m0_spiel_tx * | tx, |
const struct m0_fid * | fid, | ||
const struct m0_fid * | parent, | ||
const struct m0_fid * | real | ||
) |
Adds site "v-object"
tx | spiel transaction |
fid | fid of site-v |
parent | fid of the parent pool version |
real | fid of the site this object points to |
Definition at line 1716 of file conf_mgmt.c.
Aborts pool SNS or DIX rebalance operation.
Aborts ongoing pool SNS or DIX rebalance operation. Waits until all the sns services notify completion.
spl | spiel instance |
pool_fid | pool identifier |
Definition at line 1631 of file cmd.c.
Continues pool rebalance.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and resumes rebalance which was paused. 0 is returned if each service replies with success result code. Spiel client is able to check status of the current rebalance process by calling of m0_spiel_sns_rebalance_status() or m0_spiel_dix_rebalance_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1531 of file cmd.c.
Quiesces pool rebalance.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and pauses rebalance. 0 is returned if each service replies with success result code (rebalance process is in PAUSED state). Spiel client is able to check status of the current rebalance process by calling of m0_spiel_sns_rebalance_status() or m0_spiel_dix_rebalance_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1566 of file cmd.c.
Starts pool rebalance.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and starts rebalance. 0 is returned if each service replies with success result code. Spiel client is able to check status of the current rebalance process by calling of m0_spiel_sns_rebalance_status() or m0_spiel_dix_rebalance_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1504 of file cmd.c.
int m0_spiel_sns_rebalance_status | ( | struct m0_spiel * | spl, |
const struct m0_fid * | pool_fid, | ||
struct m0_spiel_repreb_status ** | statuses | ||
) |
Gets status of pool rebalance.
The command is synchronous. It waits replies from all SNS or DIX services.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
statuses | pointer where statuses of services will be stored |
Definition at line 1593 of file cmd.c.
Aborts pool repair.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and aborts repair. 0 is returned if each service replies with success result code (repair process is successfully aborted). Spiel client is able to check status of the current repair process by calling of m0_spiel_sns_repair_status() or m0_spiel_dix_repair_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1438 of file cmd.c.
Continues pool repair.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and resumes repair which was paused by m0_spiel_sns_repair_quiesce() or m0_spiel_dix_repair_quiesce(). 0 is returned if each service replies with success result code. Spiel client is able to check status of the current repair process by calling of m0_spiel_sns_repair_status() or m0_spiel_dix_repair_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1384 of file cmd.c.
Quiesces pool repair.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and pauses repair. 0 is returned if each service replies with success result code (repair process is in PAUSED state). Spiel client is able to check status of the current repair process by calling of m0_spiel_sns_repair_status() or m0_spiel_dix_repair_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1411 of file cmd.c.
Starts pool repair.
The command is synchronous. It waits replies from all SNS or DIX services that each one receives fop and starts repair. 0 is returned if each service replies with success result code. Spiel client is able to check status of the current repair process by calling of m0_spiel_sns_repair_status() or m0_spiel_dix_repair_status() command.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
Definition at line 1357 of file cmd.c.
int m0_spiel_sns_repair_status | ( | struct m0_spiel * | spl, |
const struct m0_fid * | pool_fid, | ||
struct m0_spiel_repreb_status ** | statuses | ||
) |
Gets status of pool repair.
The command is synchronous. It waits replies from all SNS or DIX services.
spl | spiel instance |
pool_fid | pool fid from configuration DB |
statuses | pointer where statuses of services will be stored |
Definition at line 1465 of file cmd.c.
void m0_spiel_tx_close | ( | struct m0_spiel_tx * | tx | ) |
Frees Spiel context without completing the transaction.
Definition at line 171 of file conf_mgmt.c.
int m0_spiel_tx_commit | ( | struct m0_spiel_tx * | tx | ) |
Commits filled-in spiel transaction. The call performs normal committing when reaching quorum is mandatory for uploading new configuration to confd servers and putting it in effect. Endpoints of confd and rm services will be resolved internally by rconfc which gets them from HA service.
Once function succeeded, the spiel transaction must not be committed anymore. When failed, forced committing with m0_spiel_tx_commit_forced() still remains as an option.
tx | spiel transaction |
Definition at line 723 of file conf_mgmt.c.
int m0_spiel_tx_commit_forced | ( | struct m0_spiel_tx * | tx, |
bool | forced, | ||
uint64_t | ver_forced, | ||
uint32_t * | rquorum | ||
) |
Commits filled-in spiel transaction forcing as many loads and flips as possible, no matter if quorum reached or not. The call allows version number be overridden compared to the version number obtained at m0_spiel_start(). In this case ver_forced must be of the value other than M0_CONF_VER_UNKNOWN, otherwise the version number value remains what it initially was.
The spiel transaction may be forcibly committed as many times as required completing previously failed uploads to confd servers.
tx | spiel transaction |
forced | committing with forcing any possible LOAD/FLIP enabled |
ver_forced | version number the initial value to be overridden with |
rquorum | resultant quorum value reached, NULL value allowed |
Definition at line 591 of file conf_mgmt.c.
int m0_spiel_tx_dump | ( | struct m0_spiel_tx * | tx, |
uint64_t | ver_forced, | ||
const char * | filename | ||
) |
Saves spiel transaction dump to file.
Definition at line 2205 of file conf_mgmt.c.
int m0_spiel_tx_dump_debug | ( | struct m0_spiel_tx * | tx, |
uint64_t | ver_forced, | ||
const char * | filename | ||
) |
Saves spiel transaction dump to file with error and stub object too.
Definition at line 2212 of file conf_mgmt.c.
void m0_spiel_tx_open | ( | struct m0_spiel * | spiel, |
struct m0_spiel_tx * | tx | ||
) |
Initialises and opens spiel transaction.
In case transaction is created for the sole purpose of dumping conf data, to string or file, ‘spiel’ parameter may be NULL:
In case (spiel == NULL), the transaction must not be m0_spiel_tx_commit()ted.
Definition at line 105 of file conf_mgmt.c.
void m0_spiel_tx_str_free | ( | char * | str | ) |
Definition at line 2182 of file conf_mgmt.c.
int m0_spiel_tx_to_str | ( | struct m0_spiel_tx * | tx, |
uint64_t | ver_forced, | ||
char ** | str | ||
) |
Saves spiel transaction dump to string. Caller is responsible for freeing the string with m0_spiel_tx_str_free().
Definition at line 2174 of file conf_mgmt.c.
int m0_spiel_tx_validate | ( | struct m0_spiel_tx * | tx | ) |
Check cache for completeness: each element has state M0_CS_READY and has real parent (if last need by obj type)
Definition at line 136 of file conf_mgmt.c.
M0_TL_DEFINE | ( | spiel_string | , |
static | , | ||
struct spiel_string_entry | |||
) |
M0_TL_DEFINE | ( | spiel_proc_items | , |
static | , | ||
struct spiel_proc_item | |||
) |
M0_TL_DESCR_DECLARE | ( | rpcbulk | , |
M0_EXTERN | |||
) |
M0_TL_DESCR_DEFINE | ( | spiel_string | , |
"list of endpoints" | , | ||
static | , | ||
struct spiel_string_entry | , | ||
sse_link | , | ||
sse_magic | , | ||
M0_STATS_MAGIC | , | ||
M0_STATS_HEAD_MAGIC | |||
) |
M0_TL_DESCR_DEFINE | ( | spiel_proc_items | , |
"spiel_proc_items" | , | ||
static | , | ||
struct spiel_proc_item | , | ||
spi_link | , | ||
spi_magic | , | ||
M0_SPIEL_PROC_MAGIC | , | ||
M0_SPIEL_PROC_HEAD_MAGIC | |||
) |
|
static |
|
static |
|
static |
|
static |
Callback provided to SPIEL_CONF_DIR_ITERATE. Intended for collecting fids from configuration objects which type matches to the type specified in collection context, i.e. process objects in this particular case. See m0_spiel_filesystem_stats_fetch() where spiel__fs_stats_ctx_init() is done.
Definition at line 1973 of file cmd.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Determines whether process with given fid should update fs stats.
Process, in case it hosts MDS or IOS, and is M0_NC_ONLINE to the moment of call, should update collected fs stats.
Definition at line 2003 of file cmd.c.
|
static |
|
static |
|
static |
Create m0_conf_dir objects for m0_conf_controller.
Definition at line 818 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for controller version.
Definition at line 867 of file conf_mgmt.c.
|
static |
|
static |
|
static |
|
static |
Send ‘cmd’ (m0_sss_device_fop::ssd_cmd) to all IO services that use ‘drive’.
Definition at line 606 of file cmd.c.
|
static |
Create m0_conf_dir objects for m0_conf_enclosure.
Definition at line 809 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for enclosure version.
Definition at line 858 of file conf_mgmt.c.
|
static |
Definition at line 331 of file conf_mgmt.c.
|
static |
Definition at line 336 of file conf_mgmt.c.
|
static |
|
static |
|
static |
Definition at line 256 of file conf_mgmt.c.
|
static |
Finalizes a FOP for Spiel Load command.
Definition at line 206 of file conf_mgmt.c.
|
static |
Initializes a FOP for Spiel Load command.
Definition at line 232 of file conf_mgmt.c.
|
static |
Release a FOP for Spiel Load command.
Definition at line 218 of file conf_mgmt.c.
|
static |
Definition at line 291 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for m0_conf_node.
Definition at line 751 of file conf_mgmt.c.
|
static |
|
static |
Definition at line 2033 of file conf_mgmt.c.
|
static |
|
static |
|
static |
Create m0_conf_dir objects for m0_conf_pool.
Definition at line 778 of file conf_mgmt.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Create m0_conf_dir objects for m0_conf_process.
Definition at line 760 of file conf_mgmt.c.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 1275 of file conf_mgmt.c.
|
static |
Definition at line 1958 of file conf_mgmt.c.
|
static |
Removes ‘pver’ element from m0_conf_pvers(obj).
Definition at line 2011 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for m0_conf_pver.
Definition at line 827 of file conf_mgmt.c.
|
static |
Definition at line 2047 of file conf_mgmt.c.
|
static |
Definition at line 2108 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for m0_conf_rack
Definition at line 800 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for rack version
Definition at line 849 of file conf_mgmt.c.
|
static |
|
static |
|
static |
Definition at line 186 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for m0_conf_root
Definition at line 732 of file conf_mgmt.c.
|
static |
Overrides configuration version number originally set during m0_spiel_tx_open() and stored in root object.
Definition at line 84 of file conf_mgmt.c.
|
static |
|
static |
|
static |
Definition at line 70 of file conf_mgmt.c.
|
static |
Definition at line 65 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for m0_conf_service.
Definition at line 769 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for m0_conf_site
Definition at line 789 of file conf_mgmt.c.
|
static |
Create m0_conf_dir objects for site version
Definition at line 838 of file conf_mgmt.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 2188 of file conf_mgmt.c.
|
static |
Definition at line 2162 of file conf_mgmt.c.
|
static |
|
static |
Definition at line 455 of file conf_mgmt.c.
|
static |
Definition at line 524 of file conf_mgmt.c.
|
static |
Definition at line 576 of file conf_mgmt.c.
|
static |
Definition at line 416 of file conf_mgmt.c.
|
static |
Definition at line 377 of file conf_mgmt.c.
|
static |
Definition at line 465 of file conf_mgmt.c.
|
static |
Definition at line 494 of file conf_mgmt.c.
|
static |
Definition at line 405 of file conf_mgmt.c.
|
static |
Definition at line 428 of file conf_mgmt.c.
|
static |
Definition at line 511 of file conf_mgmt.c.
|
static |
Definition at line 504 of file conf_mgmt.c.
|
static |
Definition at line 367 of file conf_mgmt.c.
|
static |
Definition at line 372 of file conf_mgmt.c.
struct m0_rpc_item_ops spiel_process_counter_ops |
struct m0_rpc_item_ops spiel_process_health_ops |
|
static |
Definition at line 460 of file conf_mgmt.c.