Motr  M0
failvec.h File Reference
#include "lib/tlist.h"
#include "lib/mutex.h"
#include "ha/dispatcher.h"
#include "lib/cookie.h"
#include "ha/note.h"
#include "xcode/xcode_attr.h"
#include "ha/note_xc.h"
#include "lib/cookie_xc.h"
Include dependency graph for failvec.h:

Go to the source code of this file.

Data Structures

struct  m0_ha_msg_failure_vec_req
 
struct  m0_ha_msg_failure_vec_rep
 
struct  m0_ha_fvec_handler
 

Macros

#define __MOTR_HA_FAILVEC_H__
 

Functions

struct m0_ha_msg_failure_vec_req M0_XCA_DOMAIN (rpc)
 
M0_INTERNAL int m0_ha_fvec_handler_init (struct m0_ha_fvec_handler *hfh, struct m0_ha_dispatcher *hd)
 
M0_INTERNAL void m0_ha_fvec_handler_fini (struct m0_ha_fvec_handler *hfh)
 
M0_INTERNAL int m0_ha_fvec_handler_add (struct m0_ha_fvec_handler *hfh, const struct m0_fid *pool_fid, struct m0_poolmach *pool_mach, struct m0_chan *chan, struct m0_cookie *cookie)
 
M0_INTERNAL int m0_ha_msg_fvec_send (const struct m0_fid *pool_fid, const struct m0_cookie *req_cookie, struct m0_ha_link *hl, uint32_t type)
 
M0_INTERNAL void m0_ha_fvec_req_handler (struct m0_ha_fvec_handler *hfh, const struct m0_ha_msg *msg, struct m0_ha_link *hl)
 
M0_INTERNAL void m0_ha_fvec_rep_handler (struct m0_ha_fvec_handler *hfh, const struct m0_ha_msg *msg)
 
M0_INTERNAL int m0_ha_failvec_fetch (const struct m0_fid *pool_fid, struct m0_poolmach *pmach, struct m0_chan *chan)
 

Variables

struct m0_fid mfq_pool
 
struct m0_cookie mfq_cookie
 
struct m0_fid mfp_pool
 
struct m0_cookie mfp_cookie
 
uint32_t mfp_nr
 
struct m0_ha_msg_nvec_array mfp_vec
 
struct m0_ha_fvec_handler M0_XCA_DOMAIN
 

Macro Definition Documentation

◆ __MOTR_HA_FAILVEC_H__

#define __MOTR_HA_FAILVEC_H__

Definition at line 27 of file failvec.h.

Function Documentation

◆ m0_ha_failvec_fetch()

M0_INTERNAL int m0_ha_failvec_fetch ( const struct m0_fid pool_fid,
struct m0_poolmach pmach,
struct m0_chan chan 
)

Requests for the failure vector for the given pool machine.

Definition at line 208 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ha_fvec_handler_add()

M0_INTERNAL int m0_ha_fvec_handler_add ( struct m0_ha_fvec_handler hfh,
const struct m0_fid pool_fid,
struct m0_poolmach pool_mach,
struct m0_chan chan,
struct m0_cookie cookie 
)

Definition at line 135 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ha_fvec_handler_fini()

M0_INTERNAL void m0_ha_fvec_handler_fini ( struct m0_ha_fvec_handler hfh)

Definition at line 126 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ha_fvec_handler_init()

M0_INTERNAL int m0_ha_fvec_handler_init ( struct m0_ha_fvec_handler hfh,
struct m0_ha_dispatcher hd 
)

Definition at line 108 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ha_fvec_rep_handler()

M0_INTERNAL void m0_ha_fvec_rep_handler ( struct m0_ha_fvec_handler hfh,
const struct m0_ha_msg msg 
)

Applies the received failure vector to respective pool-machine.

Definition at line 165 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ha_fvec_req_handler()

M0_INTERNAL void m0_ha_fvec_req_handler ( struct m0_ha_fvec_handler hfh,
const struct m0_ha_msg msg,
struct m0_ha_link hl 
)

Handles requests to fetch failure vector.

Definition at line 191 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_ha_msg_fvec_send()

M0_INTERNAL int m0_ha_msg_fvec_send ( const struct m0_fid pool_fid,
const struct m0_cookie req_cookie,
struct m0_ha_link hl,
uint32_t  type 
)

Sends an HA message to store/fetch the failure vector from HA.

Definition at line 275 of file failvec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ M0_XCA_DOMAIN()

struct m0_ha_msg_failure_vec_req M0_XCA_DOMAIN ( rpc  )

Variable Documentation

◆ M0_XCA_DOMAIN

struct m0_ha_fvec_handler M0_XCA_DOMAIN

◆ mfp_cookie

struct m0_cookie mfp_cookie

Definition at line 50 of file failvec.h.

◆ mfp_nr

uint32_t mfp_nr

Definition at line 51 of file failvec.h.

◆ mfp_pool

struct m0_fid mfp_pool

Definition at line 49 of file failvec.h.

◆ mfp_vec

struct m0_ha_msg_nvec_array mfp_vec

Definition at line 52 of file failvec.h.

◆ mfq_cookie

struct m0_cookie mfq_cookie

Definition at line 50 of file failvec.h.

◆ mfq_pool

struct m0_fid mfq_pool

Definition at line 49 of file failvec.h.