Motr  M0
m0_client Struct Reference

#include <client_internal.h>

Collaboration diagram for m0_client:
Collaboration graph

Data Fields

uint64_t m0c_magic
 
struct m0m0c_motr
 
struct m0_sm_group m0c_sm_group
 
struct m0_reqh m0c_reqh
 
struct m0_clink m0c_conf_exp
 
struct m0_clink m0c_conf_ready
 
struct m0_clink m0c_conf_ready_async
 
struct m0_fid m0c_process_fid
 
struct m0_fid m0c_profile_fid
 
struct m0_pools_common m0c_pools_common
 
struct m0_reqh_service_ctxm0c_ha_rsctx
 
struct m0_motr_ha m0c_motr_ha
 
struct m0_idx_service_ctx m0c_idx_svc_ctx
 
struct m0_atomic64 m0c_pending_io_nr
 
struct m0_confc_update_state m0c_confc_state
 
struct m0_chan m0c_conf_ready_chan
 
struct m0_ref m0c_ongoing_io
 
struct m0_thread m0c_astthread
 
bool m0c_astthread_active
 
struct m0_chan m0c_io_wait
 
struct m0_fid m0c_root_fid
 
int m0_namelen
 
char * m0c_laddr
 
struct m0_net_xprtm0c_xprt
 
struct m0_net_domain m0c_ndom
 
struct m0_net_buffer_pool m0c_buffer_pool
 
struct m0_rpc_machine m0c_rpc_machine
 
struct m0_configm0c_config
 
struct m0_sm m0c_initlift_sm
 
enum initlift_direction m0c_initlift_direction
 
int m0c_initlift_rc
 
struct m0_htable m0c_mock_entities
 
struct m0_htable m0c_rm_ctxs
 
struct m0_dtm0_servicem0c_dtms
 
struct m0_dtm0_domain m0c_dtm0_domain
 

Detailed Description

m0_ represents a client 'instance', a connection to a motr cluster. It is initalised by m0_client_init, and finalised with m0_client_fini. Any operation to open a realm requires the client instance to be specified, allowing an application to work with multiple motr clusters.

The prefix m0c is used over 'ci', to avoid confusion with colibri inode.

Definition at line 525 of file client_internal.h.

Field Documentation

◆ m0_namelen

int m0_namelen

Maximal allowed namelen (retrived from mdservice)

Definition at line 599 of file client_internal.h.

◆ m0c_astthread

struct m0_thread m0c_astthread

Special thread which runs ASTs from io requests.

Definition at line 586 of file client_internal.h.

◆ m0c_astthread_active

bool m0c_astthread_active

flag used to make the ast thread exit

Definition at line 589 of file client_internal.h.

◆ m0c_buffer_pool

struct m0_net_buffer_pool m0c_buffer_pool

Definition at line 605 of file client_internal.h.

◆ m0c_conf_exp

struct m0_clink m0c_conf_exp

Definition at line 537 of file client_internal.h.

◆ m0c_conf_ready

struct m0_clink m0c_conf_ready

Definition at line 538 of file client_internal.h.

◆ m0c_conf_ready_async

struct m0_clink m0c_conf_ready_async

Definition at line 539 of file client_internal.h.

◆ m0c_conf_ready_chan

struct m0_chan m0c_conf_ready_chan

Channel on which motr internal data structures refreshed as per new configurtion event brodcast.

Definition at line 572 of file client_internal.h.

◆ m0c_confc_state

struct m0_confc_update_state m0c_confc_state

Indicates the state of confc.

Definition at line 567 of file client_internal.h.

◆ m0c_config

struct m0_config* m0c_config

Client configuration, it takes place of m0t1fs mount options

Definition at line 609 of file client_internal.h.

◆ m0c_dtm0_domain

struct m0_dtm0_domain m0c_dtm0_domain

Definition at line 630 of file client_internal.h.

◆ m0c_dtms

struct m0_dtm0_service* m0c_dtms

Definition at line 628 of file client_internal.h.

◆ m0c_ha_rsctx

struct m0_reqh_service_ctx* m0c_ha_rsctx

HA service context.

Definition at line 552 of file client_internal.h.

◆ m0c_idx_svc_ctx

struct m0_idx_service_ctx m0c_idx_svc_ctx

Index service context.

Definition at line 557 of file client_internal.h.

◆ m0c_initlift_direction

enum initlift_direction m0c_initlift_direction

Definition at line 619 of file client_internal.h.

◆ m0c_initlift_rc

int m0c_initlift_rc

Definition at line 620 of file client_internal.h.

◆ m0c_initlift_sm

struct m0_sm m0c_initlift_sm

m0c_initlift_xxx fields control the progress of init/fini a client instance.

  • sm: the state machine for initialising this client instance
  • direction: up or down (init/fini)
  • rc: the first failure value when aborting initialisation.

Definition at line 618 of file client_internal.h.

◆ m0c_io_wait

struct m0_chan m0c_io_wait

Channel on which io waiters can wait.

Definition at line 592 of file client_internal.h.

◆ m0c_laddr

char* m0c_laddr

local endpoint address module parameter

Definition at line 602 of file client_internal.h.

◆ m0c_magic

uint64_t m0c_magic

Definition at line 526 of file client_internal.h.

◆ m0c_mock_entities

struct m0_htable m0c_mock_entities

Definition at line 623 of file client_internal.h.

◆ m0c_motr

struct m0* m0c_motr

Motr instance

Definition at line 529 of file client_internal.h.

◆ m0c_motr_ha

struct m0_motr_ha m0c_motr_ha

Definition at line 554 of file client_internal.h.

◆ m0c_ndom

struct m0_net_domain m0c_ndom

Definition at line 604 of file client_internal.h.

◆ m0c_ongoing_io

struct m0_ref m0c_ongoing_io

Reference counter of this configuration instance users. When it drops to zero, all data structures using configuration cache can be refreshed. [idx_op|obj_io]_cb_launch get ref using m0__io_ref_get and idx_op_complete & ioreq_iosm_handle_executed put ref using m0__io_ref_put.

Definition at line 582 of file client_internal.h.

◆ m0c_pending_io_nr

struct m0_atomic64 m0c_pending_io_nr

Instantaneous count of pending io requests. Every io request increments this value while initializing and decrements it while finalizing.

Definition at line 564 of file client_internal.h.

◆ m0c_pools_common

struct m0_pools_common m0c_pools_common

The following fields picture the pools in motr. m0_pools_common: details about all pools in motr. m0c_pool: current pool used by this client instance

Definition at line 549 of file client_internal.h.

◆ m0c_process_fid

struct m0_fid m0c_process_fid

Definition at line 541 of file client_internal.h.

◆ m0c_profile_fid

struct m0_fid m0c_profile_fid

Definition at line 542 of file client_internal.h.

◆ m0c_reqh

struct m0_reqh m0c_reqh

Request handler for the instance

Definition at line 535 of file client_internal.h.

◆ m0c_rm_ctxs

struct m0_htable m0c_rm_ctxs

Definition at line 626 of file client_internal.h.

◆ m0c_root_fid

struct m0_fid m0c_root_fid

Root fid, retrieved from mdservice in mount time.

Definition at line 596 of file client_internal.h.

◆ m0c_rpc_machine

struct m0_rpc_machine m0c_rpc_machine

Definition at line 606 of file client_internal.h.

◆ m0c_sm_group

struct m0_sm_group m0c_sm_group

State machine group used for all operations and entities.

Definition at line 532 of file client_internal.h.

◆ m0c_xprt

struct m0_net_xprt* m0c_xprt

Definition at line 603 of file client_internal.h.


The documentation for this struct was generated from the following file: