25 #ifndef __MOTR_SNS_CM_FILE_H__ 26 #define __MOTR_SNS_CM_FILE_H__ 207 uint64_t nr_max_data_units,
208 uint64_t
group, uint32_t unit);
struct m0_sm_ast sf_attr_ast
M0_INTERNAL uint64_t m0_sns_cm_file_data_units(struct m0_sns_cm_file_ctx *fctx)
M0_INTERNAL void m0_sns_cm_file_fwd_map(struct m0_sns_cm_file_ctx *fctx, const struct m0_pdclust_src_addr *sa, struct m0_pdclust_tgt_addr *ta)
M0_INTERNAL bool m0_sns_cm_file_unit_is_EOF(struct m0_pdclust_layout *pl, uint64_t nr_max_data_units, uint64_t group, uint32_t unit)
struct m0_layout * sf_layout
uint64_t sf_nr_ios_visited
M0_INTERNAL void m0_sns_cm_fctx_unlock(struct m0_sns_cm_file_ctx *fctx)
static struct m0_sns_cm * scm
M0_INTERNAL int m0_sns_cm_file_lock(struct m0_sns_cm *scm, const struct m0_fid *fid, struct m0_sns_cm_file_ctx **out)
M0_INTERNAL void m0_sns_cm_fctx_fini(struct m0_sns_cm_file_ctx *fctx)
struct m0_poolmach * sf_pm
M0_INTERNAL int m0_sns_cm_fctx_init(struct m0_sns_cm *scm, const struct m0_fid *fid, struct m0_sns_cm_file_ctx **sc_fctx)
M0_INTERNAL void m0_sns_cm_file_attr_and_layout_wait(struct m0_sns_cm_file_ctx *fctx, struct m0_fom *fom)
struct m0_hlink sf_sc_link
struct m0_pooldev * sf_pd
M0_INTERNAL struct m0_sns_cm_file_ctx * m0_sns_cm_fctx_get(struct m0_sns_cm *scm, const struct m0_cm_ag_id *id)
M0_HT_DECLARE(m0_scmfctx, M0_EXTERN, struct m0_sns_cm_file_ctx, struct m0_fid)
struct m0_sns_cm * sf_scm
M0_INTERNAL void m0_sns_cm_file_bwd_map(struct m0_sns_cm_file_ctx *fctx, const struct m0_pdclust_tgt_addr *ta, struct m0_pdclust_src_addr *sa)
M0_INTERNAL int m0_sns_cm_file_lock_wait(struct m0_sns_cm_file_ctx *fctx, struct m0_fom *fom)
struct m0_rm_remote sf_creditor
M0_INTERNAL void m0_sns_cm_file_unlock(struct m0_sns_cm *scm, struct m0_fid *fid)
M0_INTERNAL struct m0_pool_version * m0_sns_cm_pool_version_get(struct m0_sns_cm_file_ctx *fctx)
struct m0_clink sf_fini_clink
struct m0_sm_ast sf_fini_ast
M0_INTERNAL void m0_sns_cm_fctx_lock(struct m0_sns_cm_file_ctx *fctx)
M0_INTERNAL void m0_sns_cm_fctx_cleanup(struct m0_sns_cm *scm)
struct m0_sm_group * sf_group
M0_HT_DESCR_DECLARE(m0_scmfctx, M0_EXTERN)
struct m0_rm_incoming sf_rin
M0_INTERNAL int m0_sns_cm_file_attr_and_layout(struct m0_sns_cm_file_ctx *fctx)
M0_INTERNAL struct m0_sns_cm_file_ctx * m0_sns_cm_fctx_locate(struct m0_sns_cm *scm, struct m0_fid *fid)
M0_INTERNAL int m0_sns_cm_fctx_state_get(struct m0_sns_cm_file_ctx *fctx)
struct m0_cob_attr sf_attr
struct m0_pdclust_instance * sf_pi
static struct m0_sns_cm_file_ctx fctx
struct m0_rm_owner sf_owner
M0_INTERNAL void m0_sns_cm_fctx_put(struct m0_sns_cm *scm, const struct m0_cm_ag_id *id)
M0_INTERNAL void m0_sns_cm_flock_resource_set(struct m0_sns_cm *scm)