Motr  M0
file.h File Reference

Go to the source code of this file.

Data Structures

struct  m0_sns_cm_file_ctx
 

Macros

#define __MOTR_SNS_CM_FILE_H__
 

Enumerations

enum  m0_sns_cm_fctx_state {
  M0_SCFS_INIT = 0, M0_SCFS_LOCK_WAIT, M0_SCFS_LOCKED, M0_SCFS_ATTR_FETCH,
  M0_SCFS_ATTR_FETCHED, M0_SCFS_LAYOUT_FETCH, M0_SCFS_LAYOUT_FETCHED, M0_SCFS_FINI,
  M0_SCFS_NR
}
 

Functions

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_fctx_fini (struct m0_sns_cm_file_ctx *fctx)
 
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 int m0_sns_cm_file_lock_wait (struct m0_sns_cm_file_ctx *fctx, struct m0_fom *fom)
 
M0_INTERNAL void m0_sns_cm_file_unlock (struct m0_sns_cm *scm, struct m0_fid *fid)
 
M0_INTERNAL struct m0_sns_cm_file_ctxm0_sns_cm_fctx_locate (struct m0_sns_cm *scm, struct m0_fid *fid)
 
M0_INTERNAL struct m0_sns_cm_file_ctxm0_sns_cm_fctx_get (struct m0_sns_cm *scm, const struct m0_cm_ag_id *id)
 
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_fctx_cleanup (struct m0_sns_cm *scm)
 
M0_INTERNAL void m0_sns_cm_flock_resource_set (struct m0_sns_cm *scm)
 
M0_INTERNAL int m0_sns_cm_file_attr_and_layout (struct m0_sns_cm_file_ctx *fctx)
 
M0_INTERNAL void m0_sns_cm_file_attr_and_layout_wait (struct m0_sns_cm_file_ctx *fctx, struct m0_fom *fom)
 
M0_INTERNAL int m0_sns_cm_fctx_state_get (struct m0_sns_cm_file_ctx *fctx)
 
M0_INTERNAL struct m0_pool_versionm0_sns_cm_pool_version_get (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 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 void m0_sns_cm_fctx_lock (struct m0_sns_cm_file_ctx *fctx)
 
M0_INTERNAL void m0_sns_cm_fctx_unlock (struct m0_sns_cm_file_ctx *fctx)
 
M0_INTERNAL uint64_t m0_sns_cm_file_data_units (struct m0_sns_cm_file_ctx *fctx)
 
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)
 
 M0_HT_DESCR_DECLARE (m0_scmfctx, M0_EXTERN)
 
 M0_HT_DECLARE (m0_scmfctx, M0_EXTERN, struct m0_sns_cm_file_ctx, struct m0_fid)
 

Macro Definition Documentation

◆ __MOTR_SNS_CM_FILE_H__

#define __MOTR_SNS_CM_FILE_H__

Definition at line 26 of file file.h.