#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
#include <err.h>
#include "lib/trace.h"
#include "lib/arith.h"
#include "lib/misc.h"
#include "lib/assert.h"
#include "lib/memory.h"
#include "lib/thread.h"
#include "lib/getopts.h"
#include "dtm/dtm.h"
#include "motr/magic.h"
#include "ut/ut.h"
#include "ut/be.h"
#include "balloc/balloc.h"
#include "be/ut/helper.h"
#include "stob/ad.h"
Go to the source code of this file.
◆ BALLOC_DBNAME
#define BALLOC_DBNAME "./__balloc_db" |
◆ BALLOC_DEBUG
◆ GROUP_SIZE
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_BALLOC |
◆ balloc_invariant_enum
Enumerator |
---|
INVAR_ALLOC | |
INVAR_FREE | |
Definition at line 55 of file balloc.c.
◆ balloc_ut_invariant()
bool balloc_ut_invariant |
( |
struct m0_balloc * |
motr_balloc, |
|
|
struct m0_ext |
alloc_ext, |
|
|
int |
balloc_invariant_flag |
|
) |
| |
◆ test_balloc()
◆ test_balloc_ut_ops()
Verifies balloc operations.
- Parameters
-
is_reserve | true to reserve an extent. false to allocate an extent. |
- Returns
- 0 on success. -errno on failure.
Definition at line 99 of file balloc.c.
◆ test_reserve_extent()
void test_reserve_extent |
( |
| ) |
|
◆ balloc_ut
Initial value:= {
.ts_name = "balloc-ut",
.ts_tests = {
}
}
void test_reserve_extent()
Definition at line 302 of file balloc.c.
◆ MAX
◆ prev_free_blocks
◆ prev_group_info_free_blocks