Motr
M0
|
Detailed Functional Specification. More...
Data Structures | |
struct | m0_fi_command_req |
struct | m0_fi_command_rep |
struct | m0_reqh_fi_service |
Macros | |
#define | FI_SERVICE_NAME "M0_CST_FIS" |
Enumerations | |
enum | m0_fi_disp { M0_FI_DISP_DISABLE, M0_FI_DISP_ENABLE, M0_FI_DISP_ENABLE_ONCE, M0_FI_DISP_RANDOMIZE, M0_FI_DISP_DO_OFF_N_ON_M } |
Functions | |
struct m0_fi_command_req | M0_XCA_DOMAIN (rpc) |
M0_INTERNAL int | m0_fi_command_post_sync (struct m0_rpc_session *sess, const char *func, const char *tag, enum m0_fi_disp disp, uint32_t num1, uint32_t num2) |
M0_INTERNAL int | m0_fis_register (void) |
M0_INTERNAL void | m0_fis_unregister (void) |
Detailed Functional Specification.
#define FI_SERVICE_NAME "M0_CST_FIS" |
Definition at line 69 of file fi_service.h.
enum m0_fi_disp |
FI command disposition types supported by FIS.
Enumerator | |
---|---|
M0_FI_DISP_DISABLE | Invokes m0_fi_disable() |
M0_FI_DISP_ENABLE | Invokes m0_fi_enable() |
M0_FI_DISP_ENABLE_ONCE | Invokes m0_fi_enable_once() |
M0_FI_DISP_RANDOMIZE | Invokes m0_fi_enable_random() |
M0_FI_DISP_DO_OFF_N_ON_M | Invokes m0_fi_enable_off_n_on_m() |
Definition at line 59 of file fi_command.h.
M0_INTERNAL int m0_fi_command_post_sync | ( | struct m0_rpc_session * | sess, |
const char * | func, | ||
const char * | tag, | ||
enum m0_fi_disp | disp, | ||
uint32_t | num1, | ||
uint32_t | num2 | ||
) |
Posts fault injection command over already existing rpc session. Remote side to execute fault injection command in accordance with function name, tag and disposition. The command is executed synchronously providing m0_fi_command_rep::fcp_rc as a return code.
sess | - a valid rpc session |
func | - function name to fail on remote side |
tag | - tag the function to fail at |
disp | - fault disposition |
num1 | - 1st numerical (e.g. p in m0_fi_enable_random()) |
num2 | - 2nd numerical (e.g. m in m0_fi_enable_off_n_on_m()) |
Definition at line 56 of file fi_command.c.
M0_INTERNAL int m0_fis_register | ( | void | ) |
M0_INTERNAL void m0_fis_unregister | ( | void | ) |
struct m0_fi_command_req M0_XCA_DOMAIN | ( | rpc | ) |