23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI 78 .sd_name =
"Feed Plugins With Record",
84 .sd_name =
"Finish With Record",
90 .
scf_name =
"fdmi-plugin-dock-fom-sm",
125 return M0_RC(-ENOMEM);
129 if (reply_fop_data ==
NULL) {
151 for (idx = 0; idx < filters->
fmf_count; idx++) {
275 "filter reg not found: ffid = "FID_SF,
319 "plugin has rejected the record processing: " 425 #undef M0_TRACE_SUBSYSTEM
M0_EXTERN struct m0_reqh_service_type m0_fdmi_service_type
struct m0_fdmi_flt_id_arr fr_matched_flts
static struct m0_sm_state_descr fdmi_plugin_dock_state_descr[]
static size_t pdock_fom_home_locality(const struct m0_fom *fom)
struct m0_rpc_machine * m0_fdmi__pdock_conn_pool_rpc_machine()
M0_INTERNAL void m0_fom_block_enter(struct m0_fom *fom)
struct m0_fdmi_record_reg * m0_fdmi__pdock_record_reg_find(const struct m0_uint128 *rid)
#define M0_LOG(level,...)
void(* pf_custom_fom_fini)(struct m0_fom *fom)
int(* fto_create)(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
static const struct m0_fom_ops pdock_fom_ops
M0_INTERNAL struct m0_fdmi_record_reg * m0_fdmi__pdock_fdmi_record_register(struct m0_fop *fop)
struct m0_fdmi_plugin_ops * ffr_pcb
const struct m0_sm_conf fdmi_plugin_dock_fom_sm_conf
void * m0_fop_data(const struct m0_fop *fop)
static int pdock_fom_tick__finish_with_rec(struct m0_fom *fom)
struct m0_fop_fdmi_record * pf_rec
#define container_of(ptr, type, member)
static int pdock_fom_tick__feed_plugin_with_rec(struct m0_fom *fom)
struct m0_fom_type ft_fom_type
int(* po_fdmi_rec)(struct m0_uint128 *rec_id, struct m0_buf fdmi_rec, struct m0_fid filter_id)
void m0_fom_init(struct m0_fom *fom, const struct m0_fom_type *fom_type, const struct m0_fom_ops *ops, struct m0_fop *fop, struct m0_fop *reply, struct m0_reqh *reqh)
static int pdock_fom_tick(struct m0_fom *fom)
fdmi_plugin_dock_fom_phase
struct m0_fop_type * f_type
M0_INTERNAL void m0_ref_put(struct m0_ref *ref)
m0_fdmi_rec_type_id_t frn_frt
void m0_fom_fini(struct m0_fom *fom)
static struct m0_fop reply_fop
M0_INTERNAL void m0_fom_type_init(struct m0_fom_type *type, uint64_t id, const struct m0_fom_type_ops *ops, const struct m0_reqh_service_type *svc_type, const struct m0_sm_conf *sm)
static int pdock_fom_tick__init(struct m0_fom *fom)
M0_INTERNAL void m0_fom_block_leave(struct m0_fom *fom)
static int pdock_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
static const struct m0_fid fids[]
M0_INTERNAL int m0_fdmi__plugin_dock_fom_init(void)
void m0_rpc_reply_post(struct m0_rpc_item *request, struct m0_rpc_item *reply)
struct m0_fop_type m0_fop_fdmi_rec_not_rep_fopt
static void pdock_fom_fini(struct m0_fom *fom)
M0_INTERNAL int64_t m0_ref_read(const struct m0_ref *ref)
#define M0_ALLOC_PTR(ptr)
static const struct m0_fom_type_ops pdock_fom_type_ops
static void fom_fini(struct m0_fom *fom, enum cob_fom_type fomtype)
struct m0_rpc_item * m0_fop_to_rpc_item(const struct m0_fop *fop)
static struct m0_fop * fop
struct m0_fdmi_filter_reg * m0_fdmi__pdock_filter_reg_find(const struct m0_fid *fid)
struct m0_fid * fmf_flt_id
struct m0_uint128 fr_rec_id
const struct m0_fom_type_ops * m0_fdmi__pdock_fom_type_ops_get(void)
void(* fo_fini)(struct m0_fom *fom)
static struct m0_fom_type pdock_fom_type
void m0_fom_phase_set(struct m0_fom *fom, int phase)
struct m0_fop_fdmi_record * frr_rec
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)
#define M0_IMPOSSIBLE(fmt,...)