Motr  M0
Layout Configuration.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LAYOUT
 

Functions

static int layout_enum_build (struct m0_layout_domain *dom, const uint32_t pool_width, struct m0_layout_enum **lay_enum)
 
static int __layout_build (struct m0_layout_domain *dom, const uint64_t layout_id, struct m0_pool_version *pv, struct m0_layout_enum *le, struct m0_layout **layout)
 
M0_INTERNAL int m0_layout_init_by_pver (struct m0_layout_domain *dom, struct m0_pool_version *pv, int *count)
 

Variables

int m0_lid_to_unit_map []
 
const int m0_lid_to_unit_map_nr = ARRAY_SIZE(m0_lid_to_unit_map)
 
const int m0_lid_to_unit_map_nr
 

Detailed Description

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LAYOUT

Definition at line 30 of file layout_pver.c.

Function Documentation

◆ __layout_build()

static int __layout_build ( struct m0_layout_domain dom,
const uint64_t  layout_id,
struct m0_pool_version pv,
struct m0_layout_enum le,
struct m0_layout **  layout 
)
static

Definition at line 76 of file layout_pver.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ layout_enum_build()

static int layout_enum_build ( struct m0_layout_domain dom,
const uint32_t  pool_width,
struct m0_layout_enum **  lay_enum 
)
static

Definition at line 48 of file layout_pver.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_layout_init_by_pver()

M0_INTERNAL int m0_layout_init_by_pver ( struct m0_layout_domain dom,
struct m0_pool_version pv,
int *  count 
)

Generate layout out of passed pool version.

At this point layout has also added to the list in domain.

Definition at line 118 of file layout_pver.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ m0_lid_to_unit_map

int m0_lid_to_unit_map[]
Initial value:
= {
[ 0] = -1,
[ 1] = 4096,
[ 2] = 8192,
[ 3] = 16384,
[ 4] = 32768,
[ 5] = 65536,
[ 6] = 131072,
[ 7] = 262144,
[ 8] = 524288,
[ 9] = 1048576,
[10] = 2097152,
[11] = 4194304,
[12] = 8388608,
[13] = 16777216,
[14] = 33554432,
}

Definition at line 99 of file layout_pver.c.

◆ m0_lid_to_unit_map_nr [1/2]

const int m0_lid_to_unit_map_nr = ARRAY_SIZE(m0_lid_to_unit_map)

Definition at line 116 of file layout_pver.c.

◆ m0_lid_to_unit_map_nr [2/2]

const int m0_lid_to_unit_map_nr

Definition at line 116 of file layout_pver.c.