Motr  M0
Fault Injection Command.

Fault Injection Command is represented by m0_fi_command_req structure. The command requires m0_fi_command_req::fcr_func, m0_fi_command_req::fcr_tag and m0_fi_command_req::fcr_disp be specified to control FI behavior on remote side. None of the fields is expected to be empty.

Numeric fields are used when three or four operands implied by disposition (e.g. m0_fi_enable_random() makes use of num1 while m0_fi_enable_off_n_on_m() makes use of both num1 and num2). Otherwise, unused field is ignored.

FIS replies with m0_fi_command_rep reporting command application success.

A FI command request FOP may be posted regular way as any other FOP in Motr, or a helper function m0_fi_command_post_sync() may be used to the purpose.