Motr  M0
spiel.h File Reference
#include "fid/fid.h"
#include "conf/schema.h"
#include "conf/confc.h"
#include "conf/rconfc.h"
#include "conf/pvers.h"
#include "reqh/reqh_service.h"
#include "sns/cm/cm.h"
Include dependency graph for spiel.h:

Go to the source code of this file.

Data Structures

struct  m0_spiel_repreb_status
 
struct  m0_spiel_sns_status
 
struct  m0_spiel
 
struct  m0_spiel::m0_spiel_core
 
struct  m0_spiel_tx
 
struct  m0_spiel_service_info
 
struct  m0_spiel_running_svc
 
struct  m0_spiel_bckey
 
struct  m0_spiel_bcrec
 
struct  m0_proc_counter
 
struct  m0_fs_stats
 

Macros

#define __MOTR_SPIEL_SPIEL_H__
 

Enumerations

enum  m0_repreb_type { M0_REPREB_TYPE_SNS, M0_REPREB_TYPE_DIX, M0_REPREB_TYPE_NR }
 

Functions

int m0_spiel_init (struct m0_spiel *spiel, struct m0_reqh *reqh)
 
void m0_spiel_fini (struct m0_spiel *spiel)
 
void m0_spiel_tx_open (struct m0_spiel *spiel, struct m0_spiel_tx *tx)
 
void m0_spiel_tx_close (struct m0_spiel_tx *tx)
 
int m0_spiel_tx_commit (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_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)
 
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_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_pool_add (struct m0_spiel_tx *tx, const struct m0_fid *fid, uint32_t pver_policy)
 
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)
 
int m0_spiel_pool_version_done (struct m0_spiel_tx *tx, const struct m0_fid *fid)
 
int m0_spiel_profile_add (struct m0_spiel_tx *tx, const struct m0_fid *fid)
 
int m0_spiel_profile_pool_add (struct m0_spiel_tx *tx, const struct m0_fid *profile, const struct m0_fid *pool)
 
int m0_spiel_element_del (struct m0_spiel_tx *tx, const struct m0_fid *fid)
 
int m0_spiel_tx_validate (struct m0_spiel_tx *tx)
 
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)
 
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_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)
 
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_status (struct m0_spiel *spl, const struct m0_fid *svc_fid, int *status)
 
int m0_spiel_service_quiesce (struct m0_spiel *spl, const struct m0_fid *svc_fid)
 
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)
 
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)
 
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)
 
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)
 
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_node_direct_rebalance_start (struct m0_spiel *spl, const struct m0_fid *node)
 
int m0_spiel_sns_rebalance_continue (struct m0_spiel *spl, const struct m0_fid *pool_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)
 
int m0_spiel_proc_counters_fetch (struct m0_spiel *spl, struct m0_fid *proc_fid, struct m0_proc_counter *count_stats)
 
int m0_spiel_filesystem_stats_fetch (struct m0_spiel *spl, struct m0_fs_stats *stats)
 
M0_INTERNAL int m0_spiel__fs_stats_fetch (struct m0_spiel_core *spc, 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)
 

Macro Definition Documentation

◆ __MOTR_SPIEL_SPIEL_H__

#define __MOTR_SPIEL_SPIEL_H__

Definition at line 26 of file spiel.h.