Motr  M0
m0_sns_cm Struct Reference

#include <cm.h>

Collaboration diagram for m0_sns_cm:
Collaboration graph

Data Fields

struct m0_cm sc_base
 
enum m0_cm_op sc_op
 
const struct m0_sns_cm_helperssc_helpers
 
struct m0_cob_domainsc_cob_dom
 
struct m0_sns_cm_iter sc_it
 
struct m0_sns_cm_ag_iter sc_ag_it
 
struct m0_sns_cm_buf_pool sc_ibp
 
uint64_t sc_ibp_reserved_nr
 
struct m0_sns_cm_buf_pool sc_obp
 
uint32_t sc_repair_done
 
m0_time_t sc_start_time
 
m0_time_t sc_stop_time
 
m0_time_t sc_last_status_print_time
 
size_t * sc_total_read_size
 
size_t * sc_total_write_size
 
struct m0_htable sc_file_ctx
 
struct m0_mutex sc_file_ctx_mutex
 
struct m0_sns_cm_rm_ctx sc_rm_ctx
 
uint64_t sc_magic
 

Detailed Description

Definition at line 205 of file cm.h.

Field Documentation

◆ sc_ag_it

struct m0_sns_cm_ag_iter sc_ag_it

Definition at line 222 of file cm.h.

◆ sc_base

struct m0_cm sc_base

Definition at line 206 of file cm.h.

◆ sc_cob_dom

struct m0_cob_domain* sc_cob_dom

Definition at line 217 of file cm.h.

◆ sc_file_ctx

struct m0_htable sc_file_ctx

The hash table of file contexts of the fids being repaired/rebalanced. Currently holds the file lock related information only. Could be used to hold sns layout ctx in the future.

Definition at line 268 of file cm.h.

◆ sc_file_ctx_mutex

struct m0_mutex sc_file_ctx_mutex

Mutex to serialise the access to sc_file_ctx hash table.

Definition at line 271 of file cm.h.

◆ sc_helpers

const struct m0_sns_cm_helpers* sc_helpers

Helper functions implemented with respect to specific sns copy machine operation, viz. repair or re-balance.

Definition at line 215 of file cm.h.

◆ sc_ibp

struct m0_sns_cm_buf_pool sc_ibp

Buffer pool for incoming copy packets, this is used by sliding window.

Definition at line 227 of file cm.h.

◆ sc_ibp_reserved_nr

uint64_t sc_ibp_reserved_nr

Maintains the reserve count for the buffers from the m0_sns_cm::sc_ibp buffer pool for the incoming copy packets corresponding to the aggregation groups in the struct m0_cm::cm_aggr_grps_in list. This makes sure that the buffers are available for all the incoming copy packets within the sliding window.

Definition at line 237 of file cm.h.

◆ sc_it

struct m0_sns_cm_iter sc_it

SNS copy machine data iterator.

Definition at line 220 of file cm.h.

◆ sc_last_status_print_time

m0_time_t sc_last_status_print_time

Definition at line 257 of file cm.h.

◆ sc_magic

uint64_t sc_magic

Magic denoted by M0_SNS_CM_MAGIC.

Definition at line 277 of file cm.h.

◆ sc_obp

struct m0_sns_cm_buf_pool sc_obp

Buffer pool for outgoing copy packets.

Definition at line 240 of file cm.h.

◆ sc_op

enum m0_cm_op sc_op

Operation that sns copy machine is going to execute.

Definition at line 209 of file cm.h.

◆ sc_repair_done

uint32_t sc_repair_done

Tracks the number for which repair operation has been executed.

Definition at line 243 of file cm.h.

◆ sc_rm_ctx

struct m0_sns_cm_rm_ctx sc_rm_ctx

Resource manager context for this sns copy machine.

Definition at line 274 of file cm.h.

◆ sc_start_time

m0_time_t sc_start_time

Start time for sns copy machine. This is recorded when the ready fop arrives to the sns copy machine replica.

Definition at line 249 of file cm.h.

◆ sc_stop_time

m0_time_t sc_stop_time

Stop time for sns copy machine. This is recorded when repair is completed.

Definition at line 255 of file cm.h.

◆ sc_total_read_size

size_t* sc_total_read_size

Definition at line 259 of file cm.h.

◆ sc_total_write_size

size_t* sc_total_write_size

Definition at line 260 of file cm.h.


The documentation for this struct was generated from the following file: