Motr  M0
scanner Struct Reference
Collaboration diagram for scanner:
Collaboration graph

Data Fields

FILE * s_file
 
off_t s_start_off
 
struct queue s_bnode_q
 
struct m0_thread s_thread
 
struct m0_mutex s_lock
 
off_t s_off
 
off_t s_pos
 
bool s_byte
 
bool s_print_invalid_oids
 
off_t s_size
 
struct m0_be_segs_seg
 
struct queues_q
 
unsigned char s_chunk [4 *1024 *1024]
 
off_t s_chunk_pos
 
m0_bcount_t s_max_reg_size
 
uint64_t s_gen
 
bool s_gen_found
 

Detailed Description

Definition at line 89 of file beck.c.

Field Documentation

◆ s_bnode_q

struct queue s_bnode_q

Queue to store bnode offset in the BE segment.

Definition at line 99 of file beck.c.

◆ s_byte

bool s_byte

Definition at line 105 of file beck.c.

◆ s_chunk

unsigned char s_chunk[4 *1024 *1024]

We use the following buffer as a cache to increase read performace.

Definition at line 116 of file beck.c.

◆ s_chunk_pos

off_t s_chunk_pos

Definition at line 117 of file beck.c.

◆ s_file

FILE* s_file

Definition at line 90 of file beck.c.

◆ s_gen

uint64_t s_gen

Definition at line 125 of file beck.c.

◆ s_gen_found

bool s_gen_found

Definition at line 127 of file beck.c.

◆ s_lock

struct m0_mutex s_lock

Definition at line 102 of file beck.c.

◆ s_max_reg_size

m0_bcount_t s_max_reg_size

This holds the maximum tx region size. It is used to ensure that each record written by the builder does not exceed this value.

Definition at line 123 of file beck.c.

◆ s_off

off_t s_off

Definition at line 103 of file beck.c.

◆ s_pos

off_t s_pos

Definition at line 104 of file beck.c.

◆ s_print_invalid_oids

bool s_print_invalid_oids

This determines if invalid OIDs are logged instead silent discard

Definition at line 109 of file beck.c.

◆ s_q

struct queue* s_q

Definition at line 112 of file beck.c.

◆ s_seg

struct m0_be_seg* s_seg

Definition at line 111 of file beck.c.

◆ s_size

off_t s_size

Definition at line 110 of file beck.c.

◆ s_start_off

off_t s_start_off

It holds the BE segment offset of the bnode which is then used by scanner thread to read bnode.

Definition at line 95 of file beck.c.

◆ s_thread

struct m0_thread s_thread

Scanner thread which processes the bnodes.

Definition at line 101 of file beck.c.


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