25 #ifndef __MOTR_CAS_CAS_H__ 26 #define __MOTR_CAS_CAS_H__ 30 #include "fid/fid_xc.h" 33 #include "lib/buf_xc.h" 35 #include "lib/cookie_xc.h" 37 #include "rpc/at_xc.h" 39 #include "fop/fom_generic_xc.h" 42 #include "dix/layout_xc.h" 44 #include "dtm0/tx_desc_xc.h" 471 #define m0_cas_svc_init() 472 #define m0_cas_svc_fini() 473 #define m0_cas_svc_fop_args(sm_conf, fom_ops, svctype) \ 508 #define CRV_F "%" PRIu64 ":%c" 509 #define CRV_P(__crv) m0_crv_ts(__crv).dts_phys, m0_crv_tbs(__crv) ? 'd' : 'a' 511 #define M0_CRV_INIT_NONE ((struct m0_crv) { .crv_encoded = M0_CRV_VER_NONE }) 519 const struct m0_crv *right);
M0_INTERNAL bool m0_crv_is_none(const struct m0_crv *crv)
struct m0_dtm0_tx_desc cg_txd
M0_INTERNAL void m0_crv_ts_set(struct m0_crv *crv, const struct m0_dtm0_ts *ts)
M0_INTERNAL bool cas_in_ut(void)
M0_INTERNAL void m0_crv_tbs_set(struct m0_crv *crv, bool tbs)
struct m0_rpc_at_buf ck_key
M0_INTERNAL bool m0_crv_tbs(const struct m0_crv *crv)
M0_INTERNAL void m0_cas_svc_init(void)
M0_EXTERN struct m0_fop_type cas_cur_fopt
M0_EXTERN const struct m0_fid_type m0_cas_index_fid_type
struct m0_cookie ch_cookie
M0_EXTERN struct m0_fop_type cas_rep_fopt
M0_INTERNAL void m0_cas__ut_svc_be_set(struct m0_reqh_service *svc, struct m0_be_domain *dom)
struct m0_dix_layout ci_layout
struct m0_cas_recv cgr_rep
M0_EXTERN const struct m0_fid_type m0_cctg_fid_type
M0_INTERNAL struct m0_dtm0_ts m0_crv_ts(const struct m0_crv *crv)
M0_INTERNAL int m0_cas_fom_spawn(struct m0_fom *lead, struct m0_fom_thralldom *thrall, struct m0_fop *cas_fop, void(*on_fom_complete)(struct m0_fom_thralldom *, struct m0_fom *))
M0_EXTERN struct m0_fop_type cas_gc_fopt
M0_EXTERN struct m0_reqh_service_type m0_cas_service_type
struct m0_rpc_at_buf cr_val
struct m0_cas_rec * cr_rec
struct m0_rpc_at_buf ck_val
struct m0_rpc_at_buf cr_key
enum m0_cas_op_flags M0_XCA_DOMAIN
struct m0_cas_hint ci_hint
struct m0_fop_mod_rep cgr_mod_rep
M0_EXTERN const struct m0_fid m0_cas_dead_index_fid
struct m0_fom_thralldom thrall
M0_INTERNAL void m0_crv_init(struct m0_crv *crv, const struct m0_dtm0_ts *ts, bool tbs)
M0_INTERNAL void m0_cas_svc_fini(void)
static struct m0_stob_domain * dom
M0_EXTERN struct m0_fop_type cas_get_fopt
struct m0_cas_kv * cv_rec
M0_INTERNAL struct m0_be_domain * m0_cas__ut_svc_be_get(struct m0_reqh_service *svc)
struct m0_cas_kv_vec cr_kv_bufs
enum m0_cas_opcode M0_XCA_ENUM
struct m0_cas_recv cg_rec
struct m0_cas_hint cr_hint
M0_EXTERN const struct m0_fid_type m0_dix_fid_type
M0_INTERNAL void m0_cas_svc_fop_args(struct m0_sm_conf **sm_conf, const struct m0_fom_type_ops **fom_ops, struct m0_reqh_service_type **svctype)
M0_EXTERN const struct m0_fid m0_cas_ctidx_fid
M0_INTERNAL void m0_cas_id_fini(struct m0_cas_id *cid)
static struct m0_net_test_service svc
struct m0_fop_type m0_fop_fsync_cas_fopt
M0_INTERNAL bool m0_cas_id_invariant(const struct m0_cas_id *cid)
M0_INTERNAL int m0_crv_cmp(const struct m0_crv *left, const struct m0_crv *right)
M0_EXTERN struct m0_fop_type cas_del_fopt
M0_EXTERN const struct m0_fid m0_cas_meta_fid
M0_EXTERN struct m0_fop_type cas_put_fopt
static struct m0_be_ut_backend be